Skip to content

Commit

Permalink
Fixed a bug for the ping packet
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeusSeinGrossopa authored Feb 5, 2023
1 parent 9e92045 commit 62639ee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ public void channelInactive(ChannelHandlerContext ctx) throws Exception {

@Override
protected void channelRead0(ChannelHandlerContext channel, Object object) throws Exception {
NettyServer.getInstance().getPacketManager().getPacketHandler().handle(object);
NettyServer.getInstance().getPacketManager().getPacketHandler().handle(object, channel.channel());
}

@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
if(!cause.getMessage().equals("Connection reset"))
super.exceptionCaught(ctx, cause);
}
}
}

0 comments on commit 62639ee

Please sign in to comment.