Don't let pingbuf be released

This commit is contained in:
md_5 2013-09-10 21:26:59 +10:00
parent 08789d8f9f
commit 422e97f495

View File

@ -17,10 +17,10 @@ public class PingHandler extends PacketHandler
private final ServerInfo target;
private final Callback<ServerPing> callback;
// TODO: Update this to 1.6.2 style!
private static final ByteBuf pingBuf = Unpooled.wrappedBuffer( new byte[]
private static final ByteBuf pingBuf = Unpooled.unreleasableBuffer( Unpooled.wrappedBuffer( new byte[]
{
(byte) 0xFE, (byte) 0x01
} );
} ) );
@Override
public void connected(ChannelWrapper channel) throws Exception