Skip to content

A rootless Android app that boots Alpine Linux: run containers (Podman/Docker/LXC) and GUI desktop apps.

fix(engine): let coroutine cancellation propagate through QMP commands

ExTv8ca00b1b6820
diff --git a/app/src/main/java/com/excp/podroid/engine/QmpClient.kt b/app/src/main/java/com/excp/podroid/engine/QmpClient.kt
index f98f995..326218e 100644
--- a/app/src/main/java/com/excp/podroid/engine/QmpClient.kt
+++ b/app/src/main/java/com/excp/podroid/engine/QmpClient.kt
@@ -11,6 +11,7 @@ package com.excp.podroid.engine
import android.net.LocalSocket
import android.net.LocalSocketAddress
import android.util.Log
+import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import org.json.JSONObject
@@ -140,6 +141,8 @@ class QmpClient(private val socketPath: String) {
}
result
}
+ } catch (e: CancellationException) {
+ throw e
} catch (e: Exception) {
Log.e(TAG, "QMP command failed: $command", e)
Result.failure(e)