Fix an issue with too short not breaking the loop
This commit is contained in:
@@ -49,6 +49,7 @@ public class MinecraftVarintFrameDecoder extends ByteToMessageDecoder {
|
||||
throw VARINT_BIG_CACHED;
|
||||
} else if (reader.result == DecodeResult.TOO_SHORT) {
|
||||
// No-op: we couldn't get a useful result.
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user