mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-09-28 01:56:38 -04:00
close
This commit is contained in:
@@ -337,12 +337,12 @@ class FullNode:
|
||||
asyncio.create_task(self.full_node_peers.close())
|
||||
|
||||
async def _await_closed(self):
|
||||
await self.connection.close()
|
||||
try:
|
||||
if self._sync_task is not None:
|
||||
await asyncio.wait_for(self._sync_task, timeout=2)
|
||||
self._sync_task.cancel()
|
||||
except asyncio.TimeoutError:
|
||||
pass
|
||||
await self.connection.close()
|
||||
|
||||
async def _sync(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user