The final demoff

This commit is contained in:
ceikry
2021-07-23 00:07:58 -05:00
parent 66b3725654
commit 46a300a900
2 changed files with 1 additions and 9 deletions
@@ -60,13 +60,7 @@ public class IoEventHandler {
ByteBuffer buffer = ByteBuffer.allocate(100_000);
IoSession session = (IoSession) key.attachment();
if (channel.read(buffer) == -1) {
if(session != null){
if(session.getPlayer() != null){
session.getPlayer().clear();
}
//key.cancel();
return;
}
return;
}
buffer.flip();
if (session == null) {