don't wrap exception, just send to pipeline

This commit is contained in:
creeper123123321 2021-04-01 08:51:25 -03:00 committed by GitHub
parent 3a1c541433
commit cada4ac41b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,7 +112,7 @@ class LoginState : MinecraftConnectionState {
).whenCompleteAsync({ _, throwable ->
if (throwable != null) {
frontHandler.data.frontChannel.pipeline()
.fireExceptionCaught(RuntimeException("Online mode error: $throwable", throwable))
.fireExceptionCaught(throwable)
return@whenCompleteAsync
}
@ -127,7 +127,7 @@ class LoginState : MinecraftConnectionState {
}, backChan.eventLoop())
} catch (e: Exception) {
frontHandler.data.frontChannel.pipeline()
.fireExceptionCaught(RuntimeException("Online mode error: $e", e))
.fireExceptionCaught(e)
}
}
}
@ -201,4 +201,4 @@ class LoginState : MinecraftConnectionState {
packet.msg = Gson().toJson("[VIAaaS] §c$msg")
writeFlushClose(handler.data.frontChannel, packet)
}
}
}