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
@ -536,8 +536,11 @@ class Godot(private val context: Context) : SensorEventListener {
|
|||||||
for (plugin in pluginRegistry.allPlugins) {
|
for (plugin in pluginRegistry.allPlugins) {
|
||||||
plugin.onMainDestroy()
|
plugin.onMainDestroy()
|
||||||
}
|
}
|
||||||
GodotLib.ondestroy()
|
|
||||||
forceQuit()
|
runOnRenderThread {
|
||||||
|
GodotLib.ondestroy()
|
||||||
|
forceQuit()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user