mirror of
https://github.com/jie65535/gc-opencommand-plugin.git
synced 2025-10-20 17:12:58 +08:00
Fix client disconnect not clean player list
This commit is contained in:
@@ -91,6 +91,7 @@ public class SocketServer {
|
||||
mLogger.info("Client {} timeout, disconnect.", clientID);
|
||||
clientList.remove(clientID);
|
||||
clientTimeout.remove(clientID);
|
||||
SocketData.playerList.remove(clientID);
|
||||
} else {
|
||||
clientTimeout.put(clientID, clientTime + 500);
|
||||
}
|
||||
|
Reference in New Issue
Block a user