Change ConfigPushSvc.PushReq awaiting timed out to 20s

This commit is contained in:
Karlatemp 2021-02-02 22:09:45 +08:00
parent 0b8b26f53f
commit 66fe6f504a
No known key found for this signature in database
GPG Key ID: 21FBDDF664FF06F8

View File

@ -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." }