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,7 +53,8 @@ class CrashHandler private constructor() {
var formatFinalized: String? = null var formatFinalized: String? = null
val channelconf: ChannelSettings? = EngineConfiguration.logChannelSettings[call.channel] 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) if (ChannelSettings.getSetting(channelconf, "permitFormatting") as Boolean)
format.append("<red>") format.append("<red>")