From 3421fe55bf7b86539baa620df5960e63c10e6e68 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Fri, 20 Dec 2024 21:58:53 +0100 Subject: [PATCH] Fix startup crashes not shutting down the engine --- .../src/main/kotlin/de/staropensource/engine/base/Engine.kt | 6 ------ 1 file changed, 6 deletions(-) diff --git a/base/src/main/kotlin/de/staropensource/engine/base/Engine.kt b/base/src/main/kotlin/de/staropensource/engine/base/Engine.kt index 9e684a6..00fa421 100644 --- a/base/src/main/kotlin/de/staropensource/engine/base/Engine.kt +++ b/base/src/main/kotlin/de/staropensource/engine/base/Engine.kt @@ -345,12 +345,6 @@ class Engine private constructor() { */ @JvmStatic 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") // Perform shutdown