Fix unwanted state change during non-fatal crash
This commit is contained in:
parent
933971c82f
commit
9ee4ff933f
1 changed files with 2 additions and 1 deletions
|
@ -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>")
|
||||||
|
|
Loading…
Reference in a new issue