You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix issue causing Godot Android apps / games to freeze on close
The issue occurred because during the 'close' event, the logic was trying to terminate the native engine on the UI thread instead of doing on the render thread.
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user