Merge pull request #85454 from m4gr3d/fix_android_freeze_on_close

Fix issue causing Godot Android apps / games to freeze on close
This commit is contained in:
Rémi Verschelde 2023-11-28 08:22:14 +01:00 committed by GitHub
commit d6dd1de644
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -536,8 +536,11 @@ class Godot(private val context: Context) : SensorEventListener {
for (plugin in pluginRegistry.allPlugins) {
plugin.onMainDestroy()
}
GodotLib.ondestroy()
forceQuit()
runOnRenderThread {
GodotLib.ondestroy()
forceQuit()
}
}
/**