From c2e440cc4bece56b4663f882b80cb6c7c6746834 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Fri, 28 Apr 2023 03:16:32 +0200 Subject: [PATCH] why timeouts now? --- matrix_pygmalion_bot/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix_pygmalion_bot/main.py b/matrix_pygmalion_bot/main.py index 8fca87a..415e9d0 100644 --- a/matrix_pygmalion_bot/main.py +++ b/matrix_pygmalion_bot/main.py @@ -64,13 +64,13 @@ async def main() -> None: if sys.version_info[0] == 3 and sys.version_info[1] < 11: tasks = [] for bot in bots: - task = asyncio.create_task(bot.connection.sync_forever(timeout=30000, full_state=True)) + task = asyncio.create_task(bot.connection.sync_forever(timeout=0, full_state=True)) # timeout 30000 tasks.append(task) await asyncio.gather(*tasks) else: async with asyncio.TaskGroup() as tg: for bot in bots: - task = tg.create_task(bot.connection.sync_forever(timeout=30000, full_state=True)) + task = tg.create_task(bot.connection.sync_forever(timeout=0, full_state=True)) # timeout 30000 except Exception: print(traceback.format_exc())