Allow syncronizer to be GC-ed
Proper fix for #1525. Using python's GC module, I've verified that the daemon, when running, now releases all verifiers, synchronizers and wallets - all the resources we care about releasing.
This commit is contained in:
@@ -56,6 +56,9 @@ class Synchronizer(ThreadJob):
|
||||
return (not self.requested_tx and not self.requested_histories
|
||||
and not self.requested_addrs)
|
||||
|
||||
def release(self):
|
||||
self.network.unsubscribe(self.addr_subscription_response)
|
||||
|
||||
def add(self, address):
|
||||
'''This can be called from the proxy or GUI threads.'''
|
||||
with self.lock:
|
||||
|
||||
Reference in New Issue
Block a user