From 66fe6f504a6a09a7d5528878167c2c80312fe724 Mon Sep 17 00:00:00 2001 From: Karlatemp Date: Tue, 2 Feb 2021 22:09:45 +0800 Subject: [PATCH] Change ConfigPushSvc.PushReq awaiting timed out to 20s --- .../src/commonMain/kotlin/network/QQAndroidBotNetworkHandler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirai-core/src/commonMain/kotlin/network/QQAndroidBotNetworkHandler.kt b/mirai-core/src/commonMain/kotlin/network/QQAndroidBotNetworkHandler.kt index b79b30165..b68da5bb0 100644 --- a/mirai-core/src/commonMain/kotlin/network/QQAndroidBotNetworkHandler.kt +++ b/mirai-core/src/commonMain/kotlin/network/QQAndroidBotNetworkHandler.kt @@ -476,7 +476,7 @@ internal class QQAndroidBotNetworkHandler(coroutineContext: CoroutineContext, bo this@QQAndroidBotNetworkHandler.launch(CoroutineName("Awaiting ConfigPushSvc.PushReq")) { logger.info { "Awaiting ConfigPushSvc.PushReq." } - when (val resp: ConfigPushSvc.PushReq.PushReqResponse? = nextEventOrNull(10_000)) { + when (val resp: ConfigPushSvc.PushReq.PushReqResponse? = nextEventOrNull(20_000)) { null -> { kotlin.runCatching { bot.client.bdhSession.completeExceptionally(TimeoutCancellationException("Timeout waiting for ConfigPushSvc.PushReq")) } logger.warning { "Missing ConfigPushSvc.PushReq. File uploading may be affected." }