Read after sending ExchangeSessionKey to the client

We're expecting GAMELOGIN to be sent after exchanging the session key.

Signed-off-by: Graham <gpe@openrs2.org>
master
Graham 2 years ago
parent 655b9c9cf7
commit db1ecf3c00
  1. 1
      game/src/main/kotlin/org/openrs2/game/net/login/LoginChannelHandler.kt

@ -96,6 +96,7 @@ public class LoginChannelHandler @Inject constructor(
usernameHash = msg.usernameHash
serverKey = secureRandom.nextLong()
ctx.write(LoginResponse.ExchangeSessionKey(serverKey), ctx.voidPromise())
ctx.read()
}
private fun handleInitJs5RemoteConnection(ctx: ChannelHandlerContext, msg: LoginRequest.InitJs5RemoteConnection) {

Loading…
Cancel
Save