Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Removed sync_wait for verification queue
Browse files Browse the repository at this point in the history
  • Loading branch information
maaktweluit committed Sep 12, 2019
1 parent fb08a1c commit 8cdec99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions golem/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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')
Expand Down

0 comments on commit 8cdec99

Please sign in to comment.