From 8cdec9972c985922c6f92a62e6c2bb378a788204 Mon Sep 17 00:00:00 2001 From: maaktweluit <10008353+maaktweluit@users.noreply.github.com> Date: Thu, 12 Sep 2019 15:46:28 +0200 Subject: [PATCH] Removed sync_wait for verification queue --- golem/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/golem/client.py b/golem/client.py index 3b215ff170..314a35d89c 100644 --- a/golem/client.py +++ b/golem/client.py @@ -30,7 +30,6 @@ string_to_timeout, to_unicode, ) -from golem.core.deferred import sync_wait from golem.core.fileshelper import du from golem.hardware.presets import HardwarePresets from golem.core.keysauth import KeysAuth @@ -596,6 +595,7 @@ def stop_network(self): self.port_mapper.quit() @rpc_utils.expose('ui.stop') + @inlineCallbacks def pause(self): logger.info("Pausing ...") for service in self._services: @@ -608,7 +608,7 @@ def pause(self): self.p2pservice.disconnect() if self.task_server: logger.debug("Pausing task_server") - sync_wait(self.task_server.pause()) + yield self.task_server.pause() logger.info("Paused") @rpc_utils.expose('ui.start')