From 104f7b42926b00470576b07249d65649ed563e01 Mon Sep 17 00:00:00 2001 From: Him188 Date: Fri, 30 Apr 2021 22:06:15 +0800 Subject: [PATCH] Fix `statHeartbeatPeriodMillis` not copied in `BotConfiguration.copy` --- mirai-core-api/src/commonMain/kotlin/utils/BotConfiguration.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/mirai-core-api/src/commonMain/kotlin/utils/BotConfiguration.kt b/mirai-core-api/src/commonMain/kotlin/utils/BotConfiguration.kt index ec1661df4..06df38d1d 100644 --- a/mirai-core-api/src/commonMain/kotlin/utils/BotConfiguration.kt +++ b/mirai-core-api/src/commonMain/kotlin/utils/BotConfiguration.kt @@ -512,6 +512,7 @@ public open class BotConfiguration { // open for Java new.parentCoroutineContext = parentCoroutineContext new.heartbeatPeriodMillis = heartbeatPeriodMillis new.heartbeatTimeoutMillis = heartbeatTimeoutMillis + new.statHeartbeatPeriodMillis = statHeartbeatPeriodMillis new.firstReconnectDelayMillis = firstReconnectDelayMillis new.reconnectPeriodMillis = reconnectPeriodMillis new.reconnectionRetryTimes = reconnectionRetryTimes