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
1 changed files with 4 additions and 0 deletions

View File

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