diff --git a/proxy/src/main/java/net/md_5/bungee/connection/PingHandler.java b/proxy/src/main/java/net/md_5/bungee/connection/PingHandler.java index 644fda24..6153e6b6 100644 --- a/proxy/src/main/java/net/md_5/bungee/connection/PingHandler.java +++ b/proxy/src/main/java/net/md_5/bungee/connection/PingHandler.java @@ -16,16 +16,15 @@ public class PingHandler extends PacketHandler private final ServerInfo target; private final Callback callback; - // TODO: Update this to 1.6.2 style! - private static final ByteBuf pingBuf = Unpooled.unreleasableBuffer( Unpooled.wrappedBuffer( new byte[] - { - (byte) 0xFE, (byte) 0x01 - } ) ); @Override public void connected(ChannelWrapper channel) throws Exception { - channel.write( pingBuf ); + // TODO: Update this to 1.6.2 style! + channel.write( Unpooled.wrappedBuffer( new byte[] + { + (byte) 0xFE, (byte) 0x01 + } ) ); } @Override