瀏覽代碼

[core] Remove useless limitation on QR query, fix QR login for overseas users

Him188 2 年之前
父節點
當前提交
c29fe9d244
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mirai-core/src/commonMain/kotlin/network/components/QRCodeLoginProcessor.kt

+ 1 - 1
mirai-core/src/commonMain/kotlin/network/components/QRCodeLoginProcessor.kt

@@ -97,7 +97,7 @@ internal class QRCodeLoginProcessorImpl(
         sig: ByteArray
     ): WtLogin.TransEmp.Response {
         logger.debug { "querying qrcode state." }
-        val resp = handler.sendAndExpect(WtLogin.TransEmp.QueryQRCodeStatus(client, sig), attempts = 1, timeout = 500)
+        val resp = handler.sendAndExpect(WtLogin.TransEmp.QueryQRCodeStatus(client, sig))
         check(
             resp is WtLogin.TransEmp.Response.QRCodeStatus || resp is WtLogin.TransEmp.Response.QRCodeConfirmed
         ) { "Cannot query qrcode status, resp=$resp" }