websockets: fix call to wait() in WebsocketHandler.close()
The wait timeout must be relative to the current time. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
a605cd3048
commit
80df137437
|
@ -372,7 +372,7 @@ class WebsocketManager(APITransport):
|
|||
for ws in list(self.websockets.values()):
|
||||
ws.close()
|
||||
try:
|
||||
await self.closed_event.wait(2.)
|
||||
await self.closed_event.wait(IOLoop.current().time() + 2.)
|
||||
except tornado.util.TimeoutError:
|
||||
pass
|
||||
self.closed_event = None
|
||||
|
|
Loading…
Reference in New Issue