Fix: RMIHeartbeat
This commit is contained in:
@@ -94,10 +94,8 @@ public class RMIHeartbeat {
|
|||||||
running = false;
|
running = false;
|
||||||
watchdog.shutdownNow();
|
watchdog.shutdownNow();
|
||||||
|
|
||||||
// Mark player as offline
|
|
||||||
playerList.put(username, false);
|
playerList.put(username, false);
|
||||||
|
|
||||||
// Remove RMI callback so notifyAll skips this client
|
|
||||||
clients.remove(username);
|
clients.remove(username);
|
||||||
actionQueue.add(new DisconnectedPlayer(username));
|
actionQueue.add(new DisconnectedPlayer(username));
|
||||||
System.out.println("RMI disconnected: " + username);
|
System.out.println("RMI disconnected: " + username);
|
||||||
|
|||||||
Reference in New Issue
Block a user