cleanup after setupgame timeout properly

This commit is contained in:
Sakimori 2020-12-26 21:15:19 -05:00
parent 41c924a9ef
commit dbef439f76

View File

@ -326,6 +326,8 @@ Creator, type `{newgame.name} done` to finalize lineups.""")
msg = await client.wait_for('message', timeout=120.0, check=messagecheck) msg = await client.wait_for('message', timeout=120.0, check=messagecheck)
except asyncio.TimeoutError: except asyncio.TimeoutError:
await channel.send("Game timed out. 120 seconds between players is a bit much, see?") await channel.send("Game timed out. 120 seconds between players is a bit much, see?")
del setupmessages[team_join_message]
del newgame
return return
new_player = None new_player = None