Fix startup crashes not shutting down the engine
This commit is contained in:
parent
0ffd137891
commit
3421fe55bf
1 changed files with 0 additions and 6 deletions
|
@ -345,12 +345,6 @@ class Engine private constructor() {
|
||||||
*/
|
*/
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
internal fun shutdownAfterCrash() {
|
internal fun shutdownAfterCrash() {
|
||||||
// Check for state
|
|
||||||
when (state) {
|
|
||||||
State.UNINITIALIZED, State.SHUTTING_DOWN, State.SHUT_DOWN, State.CRASHED -> return
|
|
||||||
else -> {}
|
|
||||||
}
|
|
||||||
|
|
||||||
logger.info("Shutting down after having crashed fatally")
|
logger.info("Shutting down after having crashed fatally")
|
||||||
|
|
||||||
// Perform shutdown
|
// Perform shutdown
|
||||||
|
|
Loading…
Reference in a new issue