remove auto lock off and optimize session keepalive for mib

This commit is contained in:
2026-05-21 22:31:58 +05:00
parent 2d705457f8
commit 50150b826f
17 changed files with 223 additions and 102 deletions
@@ -68,6 +68,7 @@ class MibTransferClient {
.withWvHeaders(session)
.build()
return client.newCall(request).execute().use { response ->
if (response.code == 419) throw SessionExpiredException()
val bodyStr = response.body?.string() ?: ""
val json = try { JSONObject(bodyStr) } catch (_: Exception) { null }
if (json == null || !json.optBoolean("success")) {