From de4bfb6c07568b5310055b2f06bbc6e7872d5938 Mon Sep 17 00:00:00 2001 From: Vishesh 'ironeagle' Bangotra Date: Wed, 26 Nov 2025 15:57:44 +0530 Subject: [PATCH] changed sequence of join match and listener --- game_flow.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/game_flow.py b/game_flow.py index 6c5d2fa..fe238a5 100644 --- a/game_flow.py +++ b/game_flow.py @@ -283,14 +283,14 @@ async def main(): await p1.connect() await p2.connect() - # Match create + join - match_id = await p1.create_match() - await p2.join_match(match_id) - # Start listeners p1.start_listener() p2.start_listener() + # Match create + join + match_id = await p1.create_match() + await p2.join_match(match_id) + await asyncio.sleep(1) for test_scenario in TEST_SCENARIOS: