fix: remove stored sessions when clients get disconnected by the server

This commit is contained in:
punchready 2021-06-07 08:55:53 +02:00
parent 0d1af0ed62
commit efa5ce3848

View File

@ -143,6 +143,10 @@ public class LobbyManager {
return; return;
} }
if(!byRemote) {
participants.remove(client.id);
}
Participant participant = participants.get(client.id); Participant participant = participants.get(client.id);
LobbyConnection lobby = lobbies.get(participant.lobby); LobbyConnection lobby = lobbies.get(participant.lobby);