4d0da74014
On Android the exit logic goes through `Godot#onDestroy()` who attempts to cleanup the engine using the following code: ``` runOnRenderThread { GodotLib.ondestroy() forceQuit() } ``` The issue however is that by the time we ran this code, the render thread has already been paused (but not yet destroyed), and thus `GodotLib.ondestroy()` and `forceQuit()` which are scheduled on the render thread are not executed. To address this, we instead explicitly request the render thread to exit and block until it does. As part of it exit logic, the render thread has been updated to properly destroy and clean the native instance of the Godot engine, resolving the issue. |
||
---|---|---|
.. | ||
aidl/com/android/vending/licensing | ||
patches | ||
res | ||
src | ||
srcTest/java/org/godotengine/godot/utils | ||
AndroidManifest.xml | ||
THIRDPARTY.md | ||
build.gradle |