commit 637e65efe3c329a80b0625d8fb3496a5ab8e5e62 parent c47533f6cf7f17797a4a6637fbfef67e164f27dc Author: SomberNight <somber.night@protonmail.com> Date: Sat, 20 Oct 2018 23:17:10 +0200 network.stop: fix await Diffstat:
M | electrum/network.py | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/electrum/network.py b/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