From 13f2dd732f569d2be097a2eca74bfe1e4882781c 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 f926c891..2da57e96 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] = {}