1
0

wallet: stop() to clean-up lnworker even in offline mode

This commit is contained in:
SomberNight
2026-01-20 18:37:53 +00:00
parent 50b10284ac
commit 15067be527

View File

@@ -562,11 +562,12 @@ class Abstract_Wallet(ABC, Logger, EventListener):
self.unregister_callbacks()
try:
async with ignore_after(5):
if self.lnworker:
await self.lnworker.stop()
self.lnworker = None
if self.network:
if self.lnworker:
await self.lnworker.stop()
self.lnworker = None
self.network = None
if self.taskgroup:
await self.taskgroup.cancel_remaining()
self.taskgroup = None
await self.adb.stop()