manager: Create a new root shell for action.sh to avoid blocking the global root shell.

This commit is contained in:
weishu
2025-02-06 19:28:01 +08:00
parent 3d3bc5ce3c
commit de2100e1e9

View File

@@ -191,7 +191,7 @@ fun flashModule(
fun runModuleAction(
moduleId: String, onStdout: (String) -> Unit, onStderr: (String) -> Unit
): Boolean {
val shell = getRootShell()
val shell = createRootShell(true)
val stdoutCallback: CallbackList<String?> = object : CallbackList<String?>() {
override fun onAddElement(s: String?) {