Fix: RMIHeartbeat

This commit is contained in:
MatteoPellegrino05
2026-05-19 14:27:41 +02:00
parent 4434053138
commit cffcfd72ba
@@ -94,10 +94,8 @@ public class RMIHeartbeat {
running = false;
watchdog.shutdownNow();
// Mark player as offline
playerList.put(username, false);
// Remove RMI callback so notifyAll skips this client
clients.remove(username);
actionQueue.add(new DisconnectedPlayer(username));
System.out.println("RMI disconnected: " + username);