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,6 +53,7 @@ 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]
|
||||||
|
|
||||||
|
if (fatal)
|
||||||
Engine.state = Engine.State.CRASHED
|
Engine.state = Engine.State.CRASHED
|
||||||
|
|
||||||
if (ChannelSettings.getSetting(channelconf, "permitFormatting") as Boolean)
|
if (ChannelSettings.getSetting(channelconf, "permitFormatting") as Boolean)
|
||||||
|
|
Loading…
Reference in a new issue