Skip to content

Commit bd4ef7d

Browse files
Copilotmithun50
andauthored
Fix compile error: remove Java 9+ Process.toHandle() call incompatible with JVM target 1.8
Agent-Logs-Url: https://github.com/mithun50/openclaw-termux/sessions/3756d90a-f158-4349-b3e6-d5f489dc81e4 Co-authored-by: mithun50 <99024517+mithun50@users.noreply.github.com>
1 parent b54f398 commit bd4ef7d

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

flutter_app/android/app/src/main/kotlin/com/nxg/openclawproot/GatewayService.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -299,12 +299,7 @@ class GatewayService : Service() {
299299
try {
300300
proc.destroy() // SIGTERM — lets proot clean up its children
301301
if (!proc.waitFor(3, java.util.concurrent.TimeUnit.SECONDS)) {
302-
// proot did not exit in time; force-kill the process tree.
303-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
304-
try {
305-
proc.toHandle().descendants().forEach { it.destroyForcibly() }
306-
} catch (_: Exception) {}
307-
}
302+
// proot did not exit cleanly; force-kill it.
308303
proc.destroyForcibly()
309304
}
310305
} catch (_: Exception) {

0 commit comments

Comments
 (0)