fixing registering process
This commit is contained in:
parent
9b1eeb252c
commit
a606e83f48
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user