From 90f2fee243a6c5f8747ef7cb8c4d9df9955945fd Mon Sep 17 00:00:00 2001 From: Karlatemp Date: Tue, 15 Nov 2022 18:18:57 +0800 Subject: [PATCH] [core] Don't reconnect if error in onSolveSliderCaptcha --- .../commonMain/kotlin/network/components/SsoProcessor.kt | 8 -------- 1 file changed, 8 deletions(-) diff --git a/mirai-core/src/commonMain/kotlin/network/components/SsoProcessor.kt b/mirai-core/src/commonMain/kotlin/network/components/SsoProcessor.kt index a187b56a9..a853b7069 100644 --- a/mirai-core/src/commonMain/kotlin/network/components/SsoProcessor.kt +++ b/mirai-core/src/commonMain/kotlin/network/components/SsoProcessor.kt @@ -298,15 +298,7 @@ internal class SsoProcessorImpl( // use solver val ticket = try { loginSolverNotNull().onSolveSliderCaptcha(bot, response.url)?.takeIf { it.isNotEmpty() } - } catch (e: LoginFailedException) { - collectThrow(e) } catch (error: Throwable) { - if (allowSlider) { - collectException(error) - allowSlider = false - response = WtLogin9(client, allowSlider).sendAndExpect() - continue@mainloop - } collectThrow(error) } response = if (ticket == null) {