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,9 +536,12 @@ class Godot(private val context: Context) : SensorEventListener {
for (plugin in pluginRegistry.allPlugins) { for (plugin in pluginRegistry.allPlugins) {
plugin.onMainDestroy() plugin.onMainDestroy()
} }
runOnRenderThread {
GodotLib.ondestroy() GodotLib.ondestroy()
forceQuit() forceQuit()
} }
}
/** /**
* Activity result callback * Activity result callback