From 20524c1c3c7285312984ae00805739c3d89e69fa Mon Sep 17 00:00:00 2001 From: "Kristian S. Stangeland" Date: Sun, 8 Dec 2013 19:44:38 +0100 Subject: [PATCH] Don't catch any exceptions in the underlying decoder in ProtocolLib. --- .../protocol/injector/netty/ChannelInjector.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/injector/netty/ChannelInjector.java b/ProtocolLib/src/main/java/com/comphenix/protocol/injector/netty/ChannelInjector.java index aa0cd50f..ba7f609d 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/injector/netty/ChannelInjector.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/injector/netty/ChannelInjector.java @@ -356,10 +356,10 @@ class ChannelInjector extends ByteToMessageDecoder { @Override protected void decode(ChannelHandlerContext ctx, ByteBuf byteBuffer, List packets) throws Exception { - try { - byteBuffer.markReaderIndex(); - DECODE_BUFFER.invoke(vanillaDecoder, ctx, byteBuffer, packets); - + byteBuffer.markReaderIndex(); + DECODE_BUFFER.invoke(vanillaDecoder, ctx, byteBuffer, packets); + + try { if (packets.size() > 0) { Object input = packets.get(0); Class packetClass = input.getClass();