From b38687a3ea4848b03f0d62b6ed570d84a94c1817 Mon Sep 17 00:00:00 2001 From: Karlatemp Date: Tue, 15 Nov 2022 18:19:15 +0800 Subject: [PATCH] [core] Temporary disable `Reconnect without slider request`; Reduce device banning caused by loginsolver error --- .../src/commonMain/kotlin/network/components/SsoProcessor.kt | 5 ++++- 1 file changed, 4 insertions(+), 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 a853b7069..330e0bdb3 100644 --- a/mirai-core/src/commonMain/kotlin/network/components/SsoProcessor.kt +++ b/mirai-core/src/commonMain/kotlin/network/components/SsoProcessor.kt @@ -310,7 +310,10 @@ internal class SsoProcessorImpl( // retry once if (!allowSlider) collectThrow(createUnsupportedSliderCaptchaException(allowSlider)) allowSlider = false - response = WtLogin9(client, allowSlider).sendAndExpect() + // TODO Reconnect without slider request + // Need to create new connection NOT send it in current connection + // response = WtLogin9(client, allowSlider).sendAndExpect() + collectThrow(createUnsupportedSliderCaptchaException(false)) } }