mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-06 02:38:11 +01:00
Timeout waiting for mutex on shutdown.
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user