From 8bb236411d09604b5fe50f689ba0815587bed1fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wilhelm=20Sch=C3=BCrmann?= Date: Fri, 1 Aug 2025 20:01:18 +0200 Subject: [PATCH] Various: Make clients wait a second between connects (#5061) --- AdventureClient.py | 1 + MMBN3Client.py | 1 + OoTClient.py | 1 + Zelda1Client.py | 1 + 4 files changed, 4 insertions(+) diff --git a/AdventureClient.py b/AdventureClient.py index a4839c90..b89b8f06 100644 --- a/AdventureClient.py +++ b/AdventureClient.py @@ -407,6 +407,7 @@ async def atari_sync_task(ctx: AdventureContext): except ConnectionRefusedError: logger.debug("Connection Refused, Trying Again") ctx.atari_status = CONNECTION_REFUSED_STATUS + await asyncio.sleep(1) continue except CancelledError: pass diff --git a/MMBN3Client.py b/MMBN3Client.py index bdf14274..31c6b309 100644 --- a/MMBN3Client.py +++ b/MMBN3Client.py @@ -286,6 +286,7 @@ async def gba_sync_task(ctx: MMBN3Context): except ConnectionRefusedError: logger.debug("Connection Refused, Trying Again") ctx.gba_status = CONNECTION_REFUSED_STATUS + await asyncio.sleep(1) continue diff --git a/OoTClient.py b/OoTClient.py index 571300ed..2b0c7e49 100644 --- a/OoTClient.py +++ b/OoTClient.py @@ -277,6 +277,7 @@ async def n64_sync_task(ctx: OoTContext): except ConnectionRefusedError: logger.debug("Connection Refused, Trying Again") ctx.n64_status = CONNECTION_REFUSED_STATUS + await asyncio.sleep(1) continue diff --git a/Zelda1Client.py b/Zelda1Client.py index 4473b3f3..9753621e 100644 --- a/Zelda1Client.py +++ b/Zelda1Client.py @@ -333,6 +333,7 @@ async def nes_sync_task(ctx: ZeldaContext): except ConnectionRefusedError: logger.debug("Connection Refused, Trying Again") ctx.nes_status = CONNECTION_REFUSED_STATUS + await asyncio.sleep(1) continue