From 52ce4c1d6fcdc73dbce500fd3089438552633128 Mon Sep 17 00:00:00 2001 From: beauxq Date: Sun, 13 Aug 2023 17:00:30 -0700 Subject: [PATCH 1/2] ZillionClient 3.11 compatibility fix --- ZillionClient.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ZillionClient.py b/ZillionClient.py index 92585d3168a7..f2f8ad009383 100644 --- a/ZillionClient.py +++ b/ZillionClient.py @@ -447,9 +447,9 @@ def log_no_spam(msg: str) -> None: ctx.known_name = name async_start(ctx.connect()) await asyncio.wait(( - ctx.got_room_info.wait(), - ctx.exit_event.wait(), - asyncio.sleep(6) + asyncio.create_task(ctx.got_room_info.wait()), + asyncio.create_task(ctx.exit_event.wait()), + asyncio.create_task(asyncio.sleep(6)) ), return_when=asyncio.FIRST_COMPLETED) else: # no name found in game if not help_message_shown: From 0321e652cc07edf93f591f9bc1d408ab7cde4cc9 Mon Sep 17 00:00:00 2001 From: beauxq Date: Sun, 13 Aug 2023 18:40:01 -0700 Subject: [PATCH 2/2] another asyncio.wait --- ZillionClient.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ZillionClient.py b/ZillionClient.py index f2f8ad009383..7d32a722615e 100644 --- a/ZillionClient.py +++ b/ZillionClient.py @@ -423,9 +423,9 @@ def log_no_spam(msg: str) -> None: async_start(ctx.send_connect()) log_no_spam("logging in to server...") await asyncio.wait(( - ctx.got_slot_data.wait(), - ctx.exit_event.wait(), - asyncio.sleep(6) + asyncio.create_task(ctx.got_slot_data.wait()), + asyncio.create_task(ctx.exit_event.wait()), + asyncio.create_task(asyncio.sleep(6)) ), return_when=asyncio.FIRST_COMPLETED) # to not spam connect packets else: # not correct seed name log_no_spam("incorrect seed - did you mix up roms?")