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 {
|
private fun handleReauthResponse(packet: PluginResponse): Boolean {
|
||||||
if (packet.id == pendingReauth) {
|
if (packet.id == pendingReauth) {
|
||||||
pendingReauth = null
|
pendingReauth = null
|
||||||
val buf = Unpooled.wrappedBuffer(packet.data)
|
if (packet.success) {
|
||||||
callbackReauth.complete(buf.readBoolean())
|
val buf = Unpooled.wrappedBuffer(packet.data)
|
||||||
|
callbackReauth.complete(buf.readBoolean())
|
||||||
|
} else {
|
||||||
|
callbackReauth.complete(false)
|
||||||
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
Loading…
Reference in New Issue
Block a user