Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-16 21:10:30 +01:00
Use ByteBuf#clear() instead of skipping readable bytes
Dieser Commit ist enthalten in:
Ursprung
7944544606
Commit
9adba81d23
@ -23,7 +23,7 @@ public class LegacyPingDecoder extends ByteToMessageDecoder {
|
||||
}
|
||||
|
||||
if (!ctx.channel().isActive()) {
|
||||
in.skipBytes(in.readableBytes());
|
||||
in.clear();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -18,7 +18,7 @@ public class MinecraftVarintFrameDecoder extends ByteToMessageDecoder {
|
||||
@Override
|
||||
protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) {
|
||||
if (!ctx.channel().isActive()) {
|
||||
in.skipBytes(in.readableBytes());
|
||||
in.clear();
|
||||
return;
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren