From a605cd3048db4d0f5c0c764c1f57e0e471a3443d Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Tue, 6 Jul 2021 19:22:46 -0400 Subject: [PATCH] file_manager: NotifySyncLock bugfix The time() method must be called on the current IOLoop. Signed-off-by: Eric Callahan --- moonraker/components/file_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonraker/components/file_manager.py b/moonraker/components/file_manager.py index 1a33993..8afafb4 100644 --- a/moonraker/components/file_manager.py +++ b/moonraker/components/file_manager.py @@ -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: