1
0

Fix graceful shutdown for lightning swaps

This commit is contained in:
MrNaif2018
2024-01-09 20:25:09 +03:00
committed by ThomasV
parent 178a03129f
commit 7369145a49
3 changed files with 6 additions and 0 deletions

View File

@@ -219,6 +219,9 @@ class SwapManager(Logger):
finally:
self.logger.info("taskgroup stopped.")
async def stop(self):
await self.taskgroup.cancel_remaining()
async def pay_invoice(self, key):
self.logger.info(f'trying to pay invoice {key}')
self.invoices_to_pay[key] = 1000000000000 # lock