Skip to content

Commit

Permalink
Merge pull request #85454 from m4gr3d/fix_android_freeze_on_close
Browse files Browse the repository at this point in the history
Fix issue causing Godot Android apps / games to freeze on close
  • Loading branch information
akien-mga authored Nov 28, 2023
2 parents eda44bf + 1e4af52 commit d6dd1de
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions platform/android/java/lib/src/org/godotengine/godot/Godot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

/**
Expand Down

0 comments on commit d6dd1de

Please sign in to comment.