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:
Eric Callahan 2021-07-06 19:22:46 -04:00
parent c7f8689bfe
commit a605cd3048
1 changed files with 1 additions and 1 deletions

View File

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