From af863b8c8f383dd9d1bb355c00c30a2835ea05f3 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Wed, 16 Oct 2024 12:09:45 +0300 Subject: [PATCH] fix: await retry (#2739) --- lnbits/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnbits/tasks.py b/lnbits/tasks.py index f926c8918..2da57e96c 100644 --- a/lnbits/tasks.py +++ b/lnbits/tasks.py @@ -85,7 +85,7 @@ async def catch_everything_and_restart( logger.error(traceback.format_exc()) logger.error("will restart the task in 5 seconds.") await asyncio.sleep(5) - return catch_everything_and_restart(func, name) + return await catch_everything_and_restart(func, name) invoice_listeners: Dict[str, asyncio.Queue] = {}