geforkt von Mirrors/Velocity
Work around ByteToMessageDecoder trying to be send more messages upstream when we wanted to discard them altogether
Dieser Commit ist enthalten in:
Ursprung
ce74dcc483
Commit
98f1faf759
@ -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;
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren