mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2025-01-24 22:01:49 +01:00
catch exception correctly
This commit is contained in:
parent
e3108c7420
commit
92ab4b96dc
@ -96,7 +96,11 @@ class HandshakeState : MinecraftConnectionState {
|
||||
if (packet.nextState == State.STATUS) { // see LoginState for LOGIN
|
||||
handler.data.frontChannel.setAutoRead(false)
|
||||
handler.coroutineScope.launch(Dispatchers.IO) {
|
||||
connectBack(handler, packet.address, packet.port, packet.nextState)
|
||||
try {
|
||||
connectBack(handler, packet.address, packet.port, packet.nextState)
|
||||
} catch (e: Exception) {
|
||||
handler.data.frontChannel.pipeline().fireExceptionCaught(e)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user