feat: add settings.lnbits_running (#2450)
* feat: add `settings.lnbits_runing `
This commit is contained in:
@@ -166,10 +166,10 @@ class ClicheWallet(Wallet):
|
||||
)
|
||||
|
||||
async def paid_invoices_stream(self) -> AsyncGenerator[str, None]:
|
||||
while True:
|
||||
while settings.lnbits_running:
|
||||
try:
|
||||
ws = create_connection(self.endpoint)
|
||||
while True:
|
||||
while settings.lnbits_running:
|
||||
r = ws.recv()
|
||||
data = json.loads(r)
|
||||
print(data)
|
||||
|
||||
Reference in New Issue
Block a user