From b061ab7a346e2cb65d9a231af17af9573e5539e7 Mon Sep 17 00:00:00 2001 From: crschnick Date: Tue, 5 Dec 2023 19:06:17 +0000 Subject: [PATCH] Always run exit timer --- app/src/main/java/io/xpipe/app/core/mode/OperationMode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/xpipe/app/core/mode/OperationMode.java b/app/src/main/java/io/xpipe/app/core/mode/OperationMode.java index e5296c41c..fe81b1690 100644 --- a/app/src/main/java/io/xpipe/app/core/mode/OperationMode.java +++ b/app/src/main/java/io/xpipe/app/core/mode/OperationMode.java @@ -241,7 +241,7 @@ public abstract class OperationMode { } // Run a timer to always exit after some time in case we get stuck - if (inShutdownHook) { + if (!hasError) { ThreadHelper.runAsync(() -> { ThreadHelper.sleep(25000); TrackEvent.info("Shutdown took too long. Halting ...");