From b72589de2455c817d64e38d006f0888f8a2ad48f Mon Sep 17 00:00:00 2001 From: Him188 Date: Mon, 6 Apr 2020 20:57:51 +0800 Subject: [PATCH] Remove useless fast re-login --- .../qqandroid/network/QQAndroidBotNetworkHandler.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/QQAndroidBotNetworkHandler.kt b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/QQAndroidBotNetworkHandler.kt index 5169dd0dd..966071cae 100644 --- a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/QQAndroidBotNetworkHandler.kt +++ b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/QQAndroidBotNetworkHandler.kt @@ -109,12 +109,12 @@ internal class QQAndroidBotNetworkHandler(bot: QQAndroidBot) : BotNetworkHandler heartbeatJob?.cancel(CancellationException("relogin", cause)) heartbeatJob?.join() if (::channel.isInitialized) { - if (channel.isOpen) { - kotlin.runCatching { - registerClientOnline(500) - }.exceptionOrNull() ?: return - logger.info("Cannot do fast relogin. Trying slow relogin") - } + // if (channel.isOpen) { + // kotlin.runCatching { + // registerClientOnline(500) + // }.exceptionOrNull() ?: return + // logger.info("Cannot do fast relogin. Trying slow relogin") + // } channel.close() } channel = PlatformSocket()