feat: add settings.lnbits_running (#2450)
* feat: add `settings.lnbits_runing `
This commit is contained in:
@@ -232,7 +232,7 @@ class CoreLightningWallet(Wallet):
|
||||
return PaymentPendingStatus()
|
||||
|
||||
async def paid_invoices_stream(self) -> AsyncGenerator[str, None]:
|
||||
while True:
|
||||
while settings.lnbits_running:
|
||||
try:
|
||||
paid = await run_sync(
|
||||
lambda: self.ln.waitanyinvoice(self.last_pay_index, timeout=2)
|
||||
|
||||
Reference in New Issue
Block a user