game: fix: disable reconnexion in ongoing game
This commit is contained in:
parent
d284ed586d
commit
6ca02fc4d5
@ -133,6 +133,9 @@ class Game(AbstractRoom):
|
||||
|
||||
def _player_join(self, user_id: int, socket: WebsocketConsumer):
|
||||
|
||||
if (self.model.started):
|
||||
return None
|
||||
|
||||
player = self.get_player_by_user_id(user_id)
|
||||
if (player is None):
|
||||
return None
|
||||
|
Loading…
Reference in New Issue
Block a user