3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-09-29 06:30:16 +02:00

Work around ByteToMessageDecoder trying to be send more messages upstream when we wanted to discard them altogether

Dieser Commit ist enthalten in:
Andrew Steinborn 2020-07-15 16:52:48 -04:00
Ursprung ce74dcc483
Commit 98f1faf759

Datei anzeigen

@ -37,6 +37,10 @@ public class MinecraftDecoder extends MessageToMessageDecoder<ByteBuf> {
@Override
protected void decode(ChannelHandlerContext ctx, ByteBuf msg, List<Object> out) throws Exception {
if (!ctx.channel().isActive()) {
return;
}
if (!msg.isReadable()) {
return;
}