mirror of
https://github.com/jie65535/gc-opencommand-plugin.git
synced 2025-07-28 18:59:16 +08:00
Fix client disconnect not clean player list
This commit is contained in:
parent
8b91e50d02
commit
3bc9b0ab14
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user