delete public lobby when greater than or equal. this was causing the lobby to overfill when 2 clients joined within 250ms

This commit is contained in:
Evan
2025-03-18 12:04:09 -07:00
parent 952c747c51
commit 5188792cf4
+1 -1
View File
@@ -205,7 +205,7 @@ async function fetchLobbies(): Promise<number> {
});
lobbyInfos.forEach((l) => {
if (l.msUntilStart <= 250 || l.gameConfig.maxPlayers == l.numClients) {
if (l.msUntilStart <= 250 || l.gameConfig.maxPlayers >= l.numClients) {
publicLobbyIDs.delete(l.gameID);
}
});