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:
commit
d6dd1de644
1 changed files with 5 additions and 2 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue