Timeout waiting for mutex on shutdown.

This commit is contained in:
tecnovert
2025-04-16 08:30:50 +02:00
parent b293b5daee
commit 21c0a534f2
5 changed files with 32 additions and 18 deletions

View File

@@ -528,9 +528,8 @@ class BasicSwap(BaseApp):
def finalise(self):
self.log.info("Finalising")
with self.mxDB:
self.delay_event.set()
self.chainstate_delay_event.set()
self.delay_event.set()
self.chainstate_delay_event.set()
if self._network:
self._network.stopNetwork()
@@ -1182,7 +1181,6 @@ class BasicSwap(BaseApp):
self.stopDaemon(c)
def waitForDaemonRPC(self, coin_type, with_wallet: bool = True) -> None:
if with_wallet:
self.waitForDaemonRPC(coin_type, with_wallet=False)
if coin_type in (Coins.XMR, Coins.WOW):
@@ -1206,7 +1204,7 @@ class BasicSwap(BaseApp):
if "startup_tries" in chain_client_settings:
startup_tries = chain_client_settings["startup_tries"]
if startup_tries < 1:
self.log.warning("startup_tries can't be less than 1.")
self.log.warning('"startup_tries" can\'t be less than 1.')
startup_tries = 1
for i in range(startup_tries):
if self.delay_event.is_set():