1
0

multi-wallet: properly stop lnworker/lnwatcher

This commit is contained in:
SomberNight
2020-05-01 04:39:49 +02:00
parent 8389892dbd
commit 2b1a150c52
5 changed files with 38 additions and 9 deletions

View File

@@ -455,7 +455,7 @@ class Daemon(Logger):
wallet = self._wallets.pop(path, None)
if not wallet:
return False
wallet.stop_threads()
wallet.stop()
return True
async def run_cmdline(self, config_options):
@@ -501,7 +501,7 @@ class Daemon(Logger):
self.gui_object.stop()
# stop network/wallets
for k, wallet in self._wallets.items():
wallet.stop_threads()
wallet.stop()
if self.network:
self.logger.info("shutting down network")
self.network.stop()