fix: await retry (#2739)

This commit is contained in:
Vlad Stan 2024-10-16 12:09:45 +03:00 committed by dni ⚡
parent d8d898b20b
commit af863b8c8f
No known key found for this signature in database
GPG Key ID: D1F416F29AD26E87

View File

@ -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] = {}