fix: start match only when player list is full (#47)

This commit is contained in:
lucas authored and GitHub committed 2026-05-14 13:28:24 +02:00
1 parent 14516a878f
commit 6d6df751dd
1 file changed
+1 -1
+1 -1
View File
@@ -58,7 +58,7 @@ class AutobeerpongServer:
)
)
if all([player.ready for player in players]):
if self.context.lobby.is_players_full() and all([player.ready for player in players]):
# all players are ready, advance server state to match
self.context.state = ServerState.MATCH
# send match start message to all connected clients