|
|
@ -218,10 +218,14 @@ public class ClientConnection extends AbstractConnection { |
|
|
|
super.disconnect(); |
|
|
|
super.disconnect(); |
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
|
|
|
|
if (ConfigManager.serverType.equals(Enum.ServerType.WORLDSERVER)) |
|
|
|
if (ConfigManager.serverType.equals(Enum.ServerType.WORLDSERVER)) { |
|
|
|
|
|
|
|
Logger.info("ClientConnection.disconnect(): Calling WorldServer.removeClient()"); |
|
|
|
ConfigManager.worldServer.removeClient(this); |
|
|
|
ConfigManager.worldServer.removeClient(this); |
|
|
|
else |
|
|
|
} else { |
|
|
|
|
|
|
|
Logger.info("ClientConnection.disconnect(): Calling LoginServer.removeClient()"); |
|
|
|
ConfigManager.loginServer.removeClient(this); |
|
|
|
ConfigManager.loginServer.removeClient(this); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TODO There has to be a more direct way to do this...
|
|
|
|
// TODO There has to be a more direct way to do this...
|
|
|
|
SessionManager.remSession( |
|
|
|
SessionManager.remSession( |
|
|
|