1
0

no daemon

This commit is contained in:
ThomasV
2012-11-24 20:31:07 +01:00
parent 0ad7f72d3d
commit 9afbf21197
4 changed files with 17 additions and 10 deletions

View File

@@ -1165,6 +1165,7 @@ class WalletSynchronizer(threading.Thread):
def stop(self):
with self.lock: self.running = False
self.interface.poke('synchronizer')
def is_running(self):
with self.lock: return self.running
@@ -1233,14 +1234,10 @@ class WalletSynchronizer(threading.Thread):
self.was_updated = False
# 2. get a response
try:
r = self.interface.get_response('synchronizer', timeout=0.1)
except:
continue
r = self.interface.get_response('synchronizer')
# poke sends None. (check if still needed)
if not r:
continue
# poke sends None. (needed during stop)
if not r: continue
# 3. handle response
method = r['method']