issues
search
lnbits
/
splitpayments
MIT License
13
stars
7
forks
source link
Handle hodl invoices asynchronously tasks.py
#25
Open
santyr
opened
3 months ago
santyr
commented
3 months ago
Modified the on_invoice_paid function to call pay_invoice asynchronously using asyncio.create_task.
Added a new function pay_invoice_in_background to handle the asynchronous payment processing and exception handling.
Ensured that the main event loop remains responsive even when encountering hodl invoices by running pay_invoice in the background.