mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-31 19:40:24 +08:00
Remove bad heartbeat
This commit is contained in:
parent
24d7d49a24
commit
96554f2c95
@ -253,7 +253,7 @@ internal class QQAndroidBotNetworkHandler(bot: QQAndroidBot) : BotNetworkHandler
|
|||||||
this@QQAndroidBotNetworkHandler.launch(CoroutineName("Heartbeat")) {
|
this@QQAndroidBotNetworkHandler.launch(CoroutineName("Heartbeat")) {
|
||||||
while (this.isActive) {
|
while (this.isActive) {
|
||||||
delay(bot.configuration.heartbeatPeriodMillis)
|
delay(bot.configuration.heartbeatPeriodMillis)
|
||||||
val failException = doHeartBeat()
|
val failException = null//doHeartBeat()
|
||||||
if (failException != null) {
|
if (failException != null) {
|
||||||
delay(bot.configuration.firstReconnectDelayMillis)
|
delay(bot.configuration.firstReconnectDelayMillis)
|
||||||
close()
|
close()
|
||||||
|
Loading…
Reference in New Issue
Block a user