file_manager: NotifySyncLock bugfix
The time() method must be called on the current IOLoop. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
c7f8689bfe
commit
a605cd3048
|
@ -981,7 +981,7 @@ class NotifySyncLock:
|
|||
self.wait_fut.set_result(None)
|
||||
# Transfer control to waiter
|
||||
if timeout is not None:
|
||||
timeout = IOLoop().time() + timeout
|
||||
timeout = IOLoop.current().time() + timeout
|
||||
try:
|
||||
await self.sync_condition.wait(timeout)
|
||||
except Exception:
|
||||
|
|
Loading…
Reference in New Issue