Skip to content

Commit 3e29fbf

Browse files
committed
Reconnect always
1 parent 797dd59 commit 3e29fbf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mirai-core/src/androidMain/kotlin/net/mamoe/mirai/utils/BotConfigurationAndroid.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ actual open class BotConfiguration actual constructor() {
7272
/**
7373
* 最多尝试多少次重连
7474
*/
75-
actual var reconnectionRetryTimes: Int = 10
75+
actual var reconnectionRetryTimes: Int = Int.MAX_VALUE
7676
/**
7777
* 验证码处理器
7878
*/

mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/utils/BotConfigurationJvm.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ actual open class BotConfiguration actual constructor() {
225225
/**
226226
* 最多尝试多少次重连
227227
*/
228-
actual var reconnectionRetryTimes: Int = 10
228+
actual var reconnectionRetryTimes: Int = Int.MAX_VALUE
229229
/**
230230
* 验证码处理器
231231
*/

0 commit comments

Comments
 (0)