From 9ee4ff933faa82c8f52a227132e124e83788506b Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Wed, 18 Dec 2024 17:21:50 +0100 Subject: [PATCH] Fix unwanted state change during non-fatal crash --- .../de/staropensource/engine/base/logging/CrashHandler.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base/src/main/kotlin/de/staropensource/engine/base/logging/CrashHandler.kt b/base/src/main/kotlin/de/staropensource/engine/base/logging/CrashHandler.kt index 7add02f..fe8f506 100644 --- a/base/src/main/kotlin/de/staropensource/engine/base/logging/CrashHandler.kt +++ b/base/src/main/kotlin/de/staropensource/engine/base/logging/CrashHandler.kt @@ -53,7 +53,8 @@ class CrashHandler private constructor() { var formatFinalized: String? = null val channelconf: ChannelSettings? = EngineConfiguration.logChannelSettings[call.channel] - Engine.state = Engine.State.CRASHED + if (fatal) + Engine.state = Engine.State.CRASHED if (ChannelSettings.getSetting(channelconf, "permitFormatting") as Boolean) format.append("")