feat: add settings.lnbits_running (#2450)

* feat: add `settings.lnbits_runing `
This commit is contained in:
Vlad Stan
2024-04-22 12:33:53 +03:00
committed by GitHub
parent e91096c535
commit 4ac30116a9
21 changed files with 41 additions and 26 deletions
+2 -2
View File
@@ -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)