Fix unwanted state change during non-fatal crash

This commit is contained in:
JeremyStar™ 2024-12-18 17:21:50 +01:00
parent 933971c82f
commit 9ee4ff933f
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -53,6 +53,7 @@ class CrashHandler private constructor() {
var formatFinalized: String? = null
val channelconf: ChannelSettings? = EngineConfiguration.logChannelSettings[call.channel]
if (fatal)
Engine.state = Engine.State.CRASHED
if (ChannelSettings.getSetting(channelconf, "permitFormatting") as Boolean)