Commit b72589de authored by Him188's avatar Him188

Remove useless fast re-login

parent 4b58aa9c
...@@ -109,12 +109,12 @@ internal class QQAndroidBotNetworkHandler(bot: QQAndroidBot) : BotNetworkHandler ...@@ -109,12 +109,12 @@ internal class QQAndroidBotNetworkHandler(bot: QQAndroidBot) : BotNetworkHandler
heartbeatJob?.cancel(CancellationException("relogin", cause)) heartbeatJob?.cancel(CancellationException("relogin", cause))
heartbeatJob?.join() heartbeatJob?.join()
if (::channel.isInitialized) { if (::channel.isInitialized) {
if (channel.isOpen) { // if (channel.isOpen) {
kotlin.runCatching { // kotlin.runCatching {
registerClientOnline(500) // registerClientOnline(500)
}.exceptionOrNull() ?: return // }.exceptionOrNull() ?: return
logger.info("Cannot do fast relogin. Trying slow relogin") // logger.info("Cannot do fast relogin. Trying slow relogin")
} // }
channel.close() channel.close()
} }
channel = PlatformSocket() channel = PlatformSocket()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment