Shut down Godot processes on app exit.

(cherry picked from commit f35b1f3b91)
This commit is contained in:
fhuya 2019-08-20 22:35:46 -07:00 committed by Rémi Verschelde
parent cd0ba31533
commit 0d401e11b1
1 changed files with 4 additions and 0 deletions

View File

@ -627,6 +627,10 @@ public class Godot extends Activity implements SensorEventListener, IDownloaderC
singletons[i].onMainDestroy(); singletons[i].onMainDestroy();
} }
super.onDestroy(); super.onDestroy();
// TODO: This is a temp solution. The proper fix will involve tracking down and properly shutting down each
// native Godot components that is started in Godot#onVideoInit.
forceQuit();
} }
@Override @Override