Tweak timeotu.
This commit is contained in:
parent
9a8fc5e167
commit
98f5cdc9fc
|
@ -644,7 +644,7 @@ class Broker(object):
|
||||||
for side in self._readers | self._writers:
|
for side in self._readers | self._writers:
|
||||||
self._CallAndUpdate(side.stream, side.stream.Shutdown)
|
self._CallAndUpdate(side.stream, side.stream.Shutdown)
|
||||||
|
|
||||||
deadline = time.time() + 5.0
|
deadline = time.time() + 1.0
|
||||||
while (self._readers or self._writers) and time.time() < deadline:
|
while (self._readers or self._writers) and time.time() < deadline:
|
||||||
self._LoopOnce(1.0)
|
self._LoopOnce(1.0)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue