1
0

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:
Neil Booth
2015-11-12 08:40:58 +09:00
parent d612684196
commit 8cc3b58364
3 changed files with 14 additions and 1 deletions

View File

@@ -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: