Skip to content

Commit 8bb2364

Browse files
authored
Various: Make clients wait a second between connects (ArchipelagoMW#5061)
1 parent 332f955 commit 8bb2364

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

AdventureClient.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ async def atari_sync_task(ctx: AdventureContext):
407407
except ConnectionRefusedError:
408408
logger.debug("Connection Refused, Trying Again")
409409
ctx.atari_status = CONNECTION_REFUSED_STATUS
410+
await asyncio.sleep(1)
410411
continue
411412
except CancelledError:
412413
pass

MMBN3Client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ async def gba_sync_task(ctx: MMBN3Context):
286286
except ConnectionRefusedError:
287287
logger.debug("Connection Refused, Trying Again")
288288
ctx.gba_status = CONNECTION_REFUSED_STATUS
289+
await asyncio.sleep(1)
289290
continue
290291

291292

OoTClient.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ async def n64_sync_task(ctx: OoTContext):
277277
except ConnectionRefusedError:
278278
logger.debug("Connection Refused, Trying Again")
279279
ctx.n64_status = CONNECTION_REFUSED_STATUS
280+
await asyncio.sleep(1)
280281
continue
281282

282283

Zelda1Client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ async def nes_sync_task(ctx: ZeldaContext):
333333
except ConnectionRefusedError:
334334
logger.debug("Connection Refused, Trying Again")
335335
ctx.nes_status = CONNECTION_REFUSED_STATUS
336+
await asyncio.sleep(1)
336337
continue
337338

338339

0 commit comments

Comments
 (0)