From 46e92a069b773b681b33ecf795b2684018e24156 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Sun, 31 May 2020 14:01:27 -0400 Subject: [PATCH] Fix an issue with too short not breaking the loop --- .../proxy/protocol/netty/MinecraftVarintFrameDecoder.java | 1 + 1 file changed, 1 insertion(+) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/protocol/netty/MinecraftVarintFrameDecoder.java b/proxy/src/main/java/com/velocitypowered/proxy/protocol/netty/MinecraftVarintFrameDecoder.java index 816c25429..6bc3229cd 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/protocol/netty/MinecraftVarintFrameDecoder.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/protocol/netty/MinecraftVarintFrameDecoder.java @@ -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; } } }