Fix an issue with too short not breaking the loop

This commit is contained in:
Andrew Steinborn 2020-05-31 14:01:27 -04:00
parent f27aa8e3ba
commit 46e92a069b

View File

@ -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;
}
}
}