fixing registering process

This commit is contained in:
Jonas Weinz 2019-03-10 13:58:33 +01:00
parent 9b1eeb252c
commit a606e83f48

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)