mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-26 02:27:56 +01:00
Don't let pingbuf be released
This commit is contained in:
parent
08789d8f9f
commit
422e97f495
@ -17,10 +17,10 @@ public class PingHandler extends PacketHandler
|
|||||||
private final ServerInfo target;
|
private final ServerInfo target;
|
||||||
private final Callback<ServerPing> callback;
|
private final Callback<ServerPing> callback;
|
||||||
// TODO: Update this to 1.6.2 style!
|
// 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
|
(byte) 0xFE, (byte) 0x01
|
||||||
} );
|
} ) );
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void connected(ChannelWrapper channel) throws Exception
|
public void connected(ChannelWrapper channel) throws Exception
|
||||||
|
Loading…
Reference in New Issue
Block a user