mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-13 03:16:05 +08:00
Change ConfigPushSvc.PushReq awaiting timed out to 20s
This commit is contained in:
parent
0b8b26f53f
commit
66fe6f504a
@ -476,7 +476,7 @@ internal class QQAndroidBotNetworkHandler(coroutineContext: CoroutineContext, bo
|
|||||||
|
|
||||||
this@QQAndroidBotNetworkHandler.launch(CoroutineName("Awaiting ConfigPushSvc.PushReq")) {
|
this@QQAndroidBotNetworkHandler.launch(CoroutineName("Awaiting ConfigPushSvc.PushReq")) {
|
||||||
logger.info { "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 -> {
|
null -> {
|
||||||
kotlin.runCatching { bot.client.bdhSession.completeExceptionally(TimeoutCancellationException("Timeout waiting for ConfigPushSvc.PushReq")) }
|
kotlin.runCatching { bot.client.bdhSession.completeExceptionally(TimeoutCancellationException("Timeout waiting for ConfigPushSvc.PushReq")) }
|
||||||
logger.warning { "Missing ConfigPushSvc.PushReq. File uploading may be affected." }
|
logger.warning { "Missing ConfigPushSvc.PushReq. File uploading may be affected." }
|
||||||
|
Loading…
Reference in New Issue
Block a user