mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 18:00:33 +08:00
Remove useless fast re-login
This commit is contained in:
parent
4b58aa9c52
commit
b72589de24
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user