From 422e97f4955921e5ef364649973bce56c28a5b85 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 10 Sep 2013 21:26:59 +1000 Subject: [PATCH] Don't let pingbuf be released --- .../src/main/java/net/md_5/bungee/connection/PingHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 82a608a8..644fda24 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 @@ -17,10 +17,10 @@ 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.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