mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-11-21 11:55:15 +01:00
fix cancelling
This commit is contained in:
parent
4be71c01d2
commit
b58e5ad50c
@ -9,6 +9,7 @@ import io.netty.channel.SimpleChannelInboundHandler
|
||||
import org.slf4j.LoggerFactory
|
||||
import us.myles.ViaVersion.api.data.UserConnection
|
||||
import us.myles.ViaVersion.api.type.Type
|
||||
import us.myles.ViaVersion.exception.CancelCodecException
|
||||
import us.myles.ViaVersion.packets.State
|
||||
|
||||
val chLogger = LoggerFactory.getLogger("VIAaaS CloudHandler")
|
||||
@ -37,6 +38,7 @@ class CloudSideForwarder(val userConnection: UserConnection, var other: Channel?
|
||||
}
|
||||
|
||||
override fun exceptionCaught(ctx: ChannelHandlerContext, cause: Throwable) {
|
||||
if (cause is CancelCodecException) return
|
||||
disconnect("Exception: $cause")
|
||||
cause.printStackTrace()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user