From dbef439f762f03ae8f73312b85568c8f50e35dd9 Mon Sep 17 00:00:00 2001 From: Sakimori Date: Sat, 26 Dec 2020 21:15:19 -0500 Subject: [PATCH] cleanup after setupgame timeout properly --- the_prestige.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/the_prestige.py b/the_prestige.py index 9e9113a..64ec1b9 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -326,6 +326,8 @@ Creator, type `{newgame.name} done` to finalize lineups.""") msg = await client.wait_for('message', timeout=120.0, check=messagecheck) except asyncio.TimeoutError: await channel.send("Game timed out. 120 seconds between players is a bit much, see?") + del setupmessages[team_join_message] + del newgame return new_player = None