Karlatemp 5 роки тому
батько
коміт
0780756bd4

+ 1 - 1
mirai-core/src/commonMain/kotlin/network/handler/QQAndroidBotNetworkHandler.kt

@@ -361,7 +361,7 @@ internal class QQAndroidBotNetworkHandler(coroutineContext: CoroutineContext, bo
             null -> {
                 val hasSession = bot.bdhSyncer.hasSession
                 kotlin.runCatching { bot.bdhSyncer.bdhSession.completeExceptionally(CancellationException("Timeout waiting for ConfigPushSvc.PushReq")) }
-                if (hasSession) {
+                if (!hasSession) {
                     logger.warning { "Missing ConfigPushSvc.PushReq. File uploading may be affected." }
                 } else {
                     logger.warning { "Missing ConfigPushSvc.PushReq. Using latest response. File uploading may be affected." }