mirror of
https://github.com/jie65535/gc-opencommand-plugin.git
synced 2026-10-30 13:42:13 +08:00
Fix client disconnect not clean player list
This commit is contained in:
1 parent
8b91e50d02
commit
3bc9b0ab14
1 file changed
+1
@@ -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