Fix startup crashes not shutting down the engine
All checks were successful
PRs & Pushes / build (push) Successful in 3m36s
PRs & Pushes / test (push) Successful in 3m10s
PRs & Pushes / build-apidoc (push) Successful in 3m37s

This commit is contained in:
JeremyStar™ 2024-12-20 21:58:53 +01:00
parent 0ffd137891
commit 3421fe55bf
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -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