Merge branch 'master' of ssh://the-cake-is-a-lie.net:20022/jonas/ultimate_tictactoe_server

This commit is contained in:
Jonas Weinz 2019-03-11 15:07:40 +01:00
commit 2517076e25

View File

@ -12,7 +12,7 @@ player_games = {}
async def register_user(id, socket): async def register_user(id, socket):
if id in player_id_queue: if id in player_id_queue or id in player_games:
return False return False
player_id_queue.add(id) player_id_queue.add(id)