mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-10 15:59:33 +07:00
Fix OpenAL error Windows Events after application ends (#10551)
* Move exitProcess to a better place * Fix OpenAL error Windows Events after application ends * Extensive commenting
This commit is contained in:
@ -51,7 +51,6 @@ import java.io.PrintWriter
|
||||
import java.util.EnumSet
|
||||
import java.util.UUID
|
||||
import kotlinx.coroutines.CancellationException
|
||||
import kotlin.system.exitProcess
|
||||
|
||||
open class UncivGame(val isConsoleMode: Boolean = false) : Game(), PlatformSpecific {
|
||||
|
||||
@ -412,7 +411,7 @@ open class UncivGame(val isConsoleMode: Boolean = false) : Game(), PlatformSpeci
|
||||
// On desktop this should only be this one and "DestroyJavaVM"
|
||||
logRunningThreads()
|
||||
|
||||
exitProcess(0)
|
||||
// DO NOT `exitProcess(0)` - bypasses all Gdx and GLFW cleanup
|
||||
}
|
||||
|
||||
private fun logRunningThreads() {
|
||||
|
Reference in New Issue
Block a user