Check if channel is opened before reading packet
This commit is contained in:
@@ -365,8 +365,11 @@ public class NetworkManager extends SimpleChannelInboundHandler<Packet<?>> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void channelRead0(ChannelHandlerContext channelhandlercontext, Packet object) throws Exception { // CraftBukkit - fix decompile error
|
protected void channelRead0(ChannelHandlerContext channelhandlercontext, Packet object) throws Exception { // CraftBukkit - fix decompile error
|
||||||
|
// FlamePaper - Check if channel is opened before reading packet
|
||||||
|
if (isConnected()) {
|
||||||
this.a(channelhandlercontext, object);
|
this.a(channelhandlercontext, object);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static class QueuedPacket { // Akarin - default -> public
|
public static class QueuedPacket { // Akarin - default -> public
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user