From 98669ca12101e9997d70af0e928a91107688be0e Mon Sep 17 00:00:00 2001 From: Him188 <Him188@mamoe.net> Date: Fri, 7 Feb 2020 14:20:37 +0800 Subject: [PATCH] Add tips --- .../mamoe/mirai/qqandroid/network/QQAndroidBotNetworkHandler.kt | 1 + 1 file changed, 1 insertion(+) 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 d1279f670..1e9c5beec 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 @@ -110,6 +110,7 @@ internal class QQAndroidBotNetworkHandler(bot: QQAndroidBot) : BotNetworkHandler override suspend fun init() { this@QQAndroidBotNetworkHandler.subscribeAlways<ForceOfflineEvent> { if (this@QQAndroidBotNetworkHandler.bot == this.bot) { + this.bot.logger.error("被挤下线") close() } }