mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-24 10:05:29 -05:00
_blockchain_lock_queue is not always initialized by the time we shut down (#9402)
This commit is contained in:
@@ -713,7 +713,8 @@ class FullNode:
|
||||
self.uncompact_task.cancel()
|
||||
if self._transaction_queue_task is not None:
|
||||
self._transaction_queue_task.cancel()
|
||||
self._blockchain_lock_queue.close()
|
||||
if hasattr(self, "_blockchain_lock_queue"):
|
||||
self._blockchain_lock_queue.close()
|
||||
|
||||
async def _await_closed(self):
|
||||
cancel_task_safe(self._sync_task, self.log)
|
||||
@@ -722,7 +723,8 @@ class FullNode:
|
||||
await self.connection.close()
|
||||
if self._init_weight_proof is not None:
|
||||
await asyncio.wait([self._init_weight_proof])
|
||||
await self._blockchain_lock_queue.await_closed()
|
||||
if hasattr(self, "_blockchain_lock_queue"):
|
||||
await self._blockchain_lock_queue.await_closed()
|
||||
|
||||
async def _sync(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user