From db1ecf3c0037ed6879e1039e125412e1bc11348d Mon Sep 17 00:00:00 2001 From: Graham Date: Fri, 30 Sep 2022 21:00:48 +0100 Subject: [PATCH] Read after sending ExchangeSessionKey to the client We're expecting GAMELOGIN to be sent after exchanging the session key. Signed-off-by: Graham --- .../kotlin/org/openrs2/game/net/login/LoginChannelHandler.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/game/src/main/kotlin/org/openrs2/game/net/login/LoginChannelHandler.kt b/game/src/main/kotlin/org/openrs2/game/net/login/LoginChannelHandler.kt index 93558091..5e7dd6e0 100644 --- a/game/src/main/kotlin/org/openrs2/game/net/login/LoginChannelHandler.kt +++ b/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) {