Minor cleanup

This commit is contained in:
P0nk
2021-07-17 11:24:11 +02:00
parent 6e6fbf3be7
commit ab03dd3109
2 changed files with 9 additions and 9 deletions

View File

@@ -134,14 +134,6 @@ public class MapleClient extends ChannelInboundHandlerAdapter {
CHANNEL
}
public void updateLastPacket() {
lastPacket = System.currentTimeMillis();
}
public long getLastPacket() {
return lastPacket;
}
public MapleClient(Type type, PacketProcessor packetProcessor, int world, int channel) {
this.type = type;
this.packetProcessor = packetProcessor;
@@ -252,6 +244,14 @@ public class MapleClient extends ChannelInboundHandlerAdapter {
}
}
public void updateLastPacket() {
lastPacket = System.currentTimeMillis();
}
public long getLastPacket() {
return lastPacket;
}
public void closeSession() {
ioChannel.close();
}