Read any remaining bytes, not sure if this fixes any errors but we ideally should to prevent issues.

This commit is contained in:
Myles 2016-03-03 22:01:49 +00:00
parent caae4e4cca
commit d7b7c4916a

View File

@ -31,6 +31,7 @@ public class ViaDecodeHandler extends ByteToMessageDecoder {
ByteBuf newPacket = ctx.alloc().buffer();
try {
incomingTransformer.transform(id, bytebuf, newPacket);
bytebuf.readBytes(bytebuf.readableBytes());
bytebuf = newPacket;
} catch (CancelException e) {
bytebuf.readBytes(bytebuf.readableBytes());