From b18e62b3b6f14cbf9647a69ef54b405c86ff79d0 Mon Sep 17 00:00:00 2001 From: Him188 Date: Tue, 25 Apr 2023 11:04:35 +0100 Subject: [PATCH] [core] SsoProcessor.loginSuccess: use sendRegister to allow being overriden for tests --- .../src/commonMain/kotlin/network/components/SsoProcessor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirai-core/src/commonMain/kotlin/network/components/SsoProcessor.kt b/mirai-core/src/commonMain/kotlin/network/components/SsoProcessor.kt index 6466bc723..da7d3053b 100644 --- a/mirai-core/src/commonMain/kotlin/network/components/SsoProcessor.kt +++ b/mirai-core/src/commonMain/kotlin/network/components/SsoProcessor.kt @@ -171,7 +171,7 @@ internal class SsoProcessorImpl( suspend fun loginSuccess() { components[AccountSecretsManager].saveSecrets(ssoContext.account, AccountSecretsImpl(client)) - registerClientOnline(handler) + sendRegister(handler) ssoContext.bot.logger.info { "Login successful." } }