Browse Source

wallet: partial fix for race in on_default_server_changed

3.3.3.1
SomberNight 6 years ago
parent
commit
4d95452ae7
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 4
      electrum/address_synchronizer.py

4
electrum/address_synchronizer.py

@ -142,10 +142,12 @@ class AddressSynchronizer(PrintError):
if not i.done():
i.cancel()
self.network.futures.clear()
if self.network.interface is None:
return
# FIXME there are races here.. network.interface can become None
self.network.futures.append(asyncio.get_event_loop().create_task(self.verifier.main()))
self.network.futures.append(asyncio.get_event_loop().create_task(self.synchronizer.send_subscriptions()))
self.network.futures.append(asyncio.get_event_loop().create_task(self.synchronizer.handle_status()))
assert self.network.interface.session is not None
self.network.futures.append(asyncio.get_event_loop().create_task(self.synchronizer.main()))
def start_threads(self, network):

Loading…
Cancel
Save