Avoid directly utilizing the disconnect method for GameClient.
This commit is contained in:
parent
47b9dbd20f
commit
c449a89a83
@ -97,11 +97,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -97,11 +97,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -97,11 +97,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -97,11 +97,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -97,11 +97,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -97,11 +97,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -97,11 +97,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -97,11 +97,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -97,11 +97,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -97,11 +97,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -97,11 +97,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -97,11 +97,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -91,11 +91,12 @@ public class GameClient extends NetClient
|
||||
LOGGER_ACCOUNTING.finer("Client disconnected: " + this);
|
||||
LoginServerThread.getInstance().sendLogout(_accountName);
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
|
||||
synchronized (this)
|
||||
{
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -40,6 +40,7 @@ public class Logout implements ClientPacket
|
||||
final Player player = client.getPlayer();
|
||||
if (player == null)
|
||||
{
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -79,11 +79,12 @@ public class GameClient extends NetClient
|
||||
LOGGER_ACCOUNTING.finer("Client disconnected: " + this);
|
||||
LoginServerThread.getInstance().sendLogout(_accountName);
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
|
||||
synchronized (this)
|
||||
{
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -40,6 +40,7 @@ public class Logout implements ClientPacket
|
||||
final Player player = client.getPlayer();
|
||||
if (player == null)
|
||||
{
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -85,11 +85,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -85,11 +85,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -88,11 +88,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -97,11 +97,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -97,11 +97,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -97,11 +97,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -97,11 +97,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -97,11 +97,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -97,11 +97,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -97,11 +97,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -97,11 +97,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -97,11 +97,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -97,11 +97,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -97,11 +97,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -97,11 +97,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -97,11 +97,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -97,11 +97,12 @@ public class GameClient extends NetClient
|
||||
Disconnection.of(this).onDisconnection();
|
||||
}
|
||||
_connectionState = ConnectionState.DISCONNECTED;
|
||||
super.onDisconnection();
|
||||
}
|
||||
|
||||
public void closeNow()
|
||||
{
|
||||
disconnect();
|
||||
onDisconnection();
|
||||
}
|
||||
|
||||
public void close(ServerPacket packet)
|
||||
|
@ -43,7 +43,7 @@ public class PacketHandler implements PacketHandlerInterface<GameClient>
|
||||
{
|
||||
LOGGER.warning("PacketHandler: Problem receiving packet id from " + client);
|
||||
LOGGER.warning(CommonUtil.getStackTrace(e));
|
||||
client.disconnect();
|
||||
client.closeNow();
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user