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

@@ -65,6 +65,7 @@ class WalletVerifier(threading.Thread):
def stop(self):
with self.lock: self.running = False
self.interface.poke('verifier')
def is_running(self):
with self.lock: return self.running
@@ -126,9 +127,10 @@ class WalletVerifier(threading.Thread):
self.pending_headers.remove(header)
try:
r = self.interface.get_response('verifier',timeout=0.1)
r = self.interface.get_response('verifier',timeout=1)
except Queue.Empty:
continue
if not r: continue
# 3. handle response
method = r['method']