update_manager: fix bug in "check_initialized" methods

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2020-12-19 14:05:11 -05:00
parent 6898ff8ab6
commit 0a7eed2767
1 changed files with 2 additions and 2 deletions

View File

@ -238,7 +238,7 @@ class GitUpdater:
if self.init_evt.is_set():
return
if timeout is not None:
to = IOLoop.current.time() + timeout
to = IOLoop.current().time() + timeout
await self.init_evt.wait(to)
async def refresh(self):
@ -463,7 +463,7 @@ class ClientUpdater:
if self.init_evt.is_set():
return
if timeout is not None:
to = IOLoop.current.time() + timeout
to = IOLoop.current().time() + timeout
await self.init_evt.wait(to)
async def refresh(self):