Remove players who have left from players_ready

This commit is contained in:
Juhani Krekelä 2019-05-06 18:59:07 +03:00
parent 7d905b3b95
commit 6113dae84c
1 changed files with 1 additions and 0 deletions

View File

@ -326,6 +326,7 @@ def game(send, notice, voice, devoice, get_event):
send('Lost all players, quiting game setup')
return no_game
players_ready = set(i for i in players_ready if i in players.values())
players_unready = [i for i in players.values() if i not in players_ready]
if len(players_unready) == 0: break