mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-11-21 11:55:15 +01:00
fix exception spam
This commit is contained in:
parent
cc80cb2643
commit
22d07a7ea7
@ -8,10 +8,8 @@ import us.myles.ViaVersion.api.type.Type
|
||||
|
||||
class FrameCodec : ByteToMessageCodec<ByteBuf>() {
|
||||
override fun decode(ctx: ChannelHandlerContext, input: ByteBuf, out: MutableList<Any>) {
|
||||
if (!ctx.channel().isActive) {
|
||||
input.clear() // Ignore, should prevent DoS https://github.com/SpigotMC/BungeeCord/pull/2908
|
||||
return
|
||||
}
|
||||
if (!ctx.channel().isActive) return
|
||||
// Ignore, should prevent DoS https://github.com/SpigotMC/BungeeCord/pull/2908
|
||||
|
||||
val index = input.readerIndex()
|
||||
var nByte = 0
|
||||
|
Loading…
Reference in New Issue
Block a user