Browse Source

network.stop: fix await

3.3.3.1
SomberNight 6 years ago
parent
commit
637e65efe3
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/network.py

2
electrum/network.py

@ -829,7 +829,7 @@ class Network(PrintError):
async def _stop(self, full_shutdown=False):
self.print_error("stopping network")
try:
asyncio.wait_for(await self.main_taskgroup.cancel_remaining(), timeout=2)
await asyncio.wait_for(self.main_taskgroup.cancel_remaining(), timeout=2)
except asyncio.TimeoutError: pass
self.main_taskgroup = None

Loading…
Cancel
Save