1
0

fix synchronizer hanging when not connected.

This commit is contained in:
ThomasV
2015-03-14 08:43:43 +01:00
parent c3cba78659
commit a4cb70649d
6 changed files with 18 additions and 12 deletions

View File

@@ -49,8 +49,9 @@ class WalletSynchronizer(util.DaemonThread):
def run(self):
while self.is_running():
while not self.network.is_connected():
if not self.network.is_connected():
time.sleep(0.1)
continue
self.run_interface()
def run_interface(self):
@@ -183,3 +184,5 @@ class WalletSynchronizer(util.DaemonThread):
# Updated gets called too many times from other places as well; if we use that signal we get the notification three times
self.network.trigger_callback("new_transaction")
self.was_updated = False
self.print_error("stopped")