From 1fbd561aec4d3ffef19253ef1f10e62228e4259d Mon Sep 17 00:00:00 2001 From: Myles Date: Sat, 19 Mar 2016 22:04:17 +0000 Subject: [PATCH] Oops, fix 1.8 clients --- .../java/us/myles/ViaVersion/handlers/ViaDecodeHandler.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/us/myles/ViaVersion/handlers/ViaDecodeHandler.java b/src/main/java/us/myles/ViaVersion/handlers/ViaDecodeHandler.java index c4483c2d2..c28dc4e57 100644 --- a/src/main/java/us/myles/ViaVersion/handlers/ViaDecodeHandler.java +++ b/src/main/java/us/myles/ViaVersion/handlers/ViaDecodeHandler.java @@ -48,7 +48,9 @@ public class ViaDecodeHandler extends ByteToMessageDecoder { throw (Exception) e.getCause(); } } finally { - bytebuf.release(); + if (info.isActive()) { + bytebuf.release(); + } } } }