Tweak timeotu.

This commit is contained in:
David Wilson 2016-08-11 16:48:06 +01:00
parent 9a8fc5e167
commit 98f5cdc9fc
1 changed files with 1 additions and 1 deletions

View File

@ -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)