mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2025-01-08 19:38:36 +01:00
fix reauth
This commit is contained in:
parent
e6e9432cd1
commit
d9920c01ab
@ -65,9 +65,12 @@ class LoginState : ConnectionState {
|
||||
private fun handleReauthResponse(packet: PluginResponse): Boolean {
|
||||
if (packet.id == pendingReauth) {
|
||||
pendingReauth = null
|
||||
val buf = Unpooled.wrappedBuffer(packet.data)
|
||||
callbackReauth.complete(buf.readBoolean())
|
||||
|
||||
if (packet.success) {
|
||||
val buf = Unpooled.wrappedBuffer(packet.data)
|
||||
callbackReauth.complete(buf.readBoolean())
|
||||
} else {
|
||||
callbackReauth.complete(false)
|
||||
}
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user