mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 09:21:39 +00:00
network.stop: fix await
This commit is contained in:
parent
c47533f6cf
commit
637e65efe3
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue