diff --git a/lib/blockchain.py b/lib/blockchain.py index e6425745..4ee95e76 100644 --- a/lib/blockchain.py +++ b/lib/blockchain.py @@ -59,7 +59,7 @@ class BlockchainVerifier(threading.Thread): def get_new_response(self): # listen to interfaces, forward to verifier using the queue - while 1: + while self.is_running(): for i in self.interfaces: try: r = i.get_response('verifier',timeout=0) diff --git a/lib/wallet.py b/lib/wallet.py index 7d9f7d3c..7c42dae9 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -1353,6 +1353,10 @@ class WalletSynchronizer(threading.Thread): def run(self): + if not self.interface.is_connected: + print_error( "synchronizer: waiting for interface") + self.interface.connect_event.wait() + with self.lock: self.running = True requested_tx = []