while running

This commit is contained in:
dni
2026-07-13 09:37:19 +02:00
parent 3571f96979
commit 610db9b9b8
+1 -1
View File
@@ -526,7 +526,7 @@ async def relay_ws_queue(
Shared by the blockexplorer address/tx/block websocket endpoints.
"""
try:
while True:
while settings.lnbits_running:
recv_task = asyncio.create_task(websocket.receive())
event_task = asyncio.create_task(queue.get())
done, pending = await asyncio.wait(