Explorar el Código

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

Him188 hace 2 años
padre
commit
c29fe9d244

+ 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" }