From d0f7264ea8e402d30c868779198dc2fd74e7431c Mon Sep 17 00:00:00 2001 From: wallentx Date: Sun, 11 Oct 2026 20:54:43 -0500 Subject: [PATCH] Remove the temporary test worker crash probe --- .../droiddeck/launcher/session/CrashHandler.kt | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/app/src/main/java/com/droiddeck/launcher/session/CrashHandler.kt b/app/src/main/java/com/droiddeck/launcher/session/CrashHandler.kt index f079243e6..1a0a66933 100644 --- a/app/src/main/java/com/droiddeck/launcher/session/CrashHandler.kt +++ b/app/src/main/java/com/droiddeck/launcher/session/CrashHandler.kt @@ -39,20 +39,7 @@ object CrashHandler { } catch (e: Throwable) { // Nothing more to do for a crash inside the crash handler. } finally { - if (previous != null) { - previous.uncaughtException(thread, error) - } else { - // Temporary: bypass captured System.err when diagnosing the test worker's exit 2. - try { - val raw = java.io.PrintStream(java.io.FileOutputStream(java.io.FileDescriptor.err), true) - raw.println("DroidDeck CrashHandler: uncaught on ${thread.name}") - error.printStackTrace(raw) - raw.flush() - } catch (_: Throwable) { - } finally { - Runtime.getRuntime().halt(2) - } - } + previous?.uncaughtException(thread, error) ?: Runtime.getRuntime().halt(2) } } }