1
0

wallet: recreate Synchronizer and Verifier when switching servers

not that nice but solves races
This commit is contained in:
SomberNight
2018-09-08 01:34:33 +02:00
parent 32528d6aa6
commit 136df7e5ee
4 changed files with 26 additions and 20 deletions

View File

@@ -151,13 +151,13 @@ class Synchronizer(PrintError):
async def send_subscriptions(self, interface):
while True:
addr = await self.add_queue.get()
await interface.group.spawn(self.subscribe_to_address(addr))
await interface.group.spawn(self.subscribe_to_address, addr)
async def handle_status(self, interface):
while True:
h, status = await self.status_queue.get()
addr = self.scripthash_to_address[h]
await interface.group.spawn(self.on_address_status(addr, status))
await interface.group.spawn(self.on_address_status, addr, status)
@property
def session(self):