diff options
author | Lauro Moura <lauromoura@expertisesolutions.com.br> | 2019-05-20 20:23:53 -0300 |
---|---|---|
committer | Vitor Sousa <vitorsousa@expertisesolutions.com.br> | 2019-05-31 18:01:04 -0300 |
commit | d83d89e882cfee31ba5ee5e9a8219e3b7e1c0efe (patch) | |
tree | 53994481934e6bd830f9858363977f6d5578be6d | |
parent | fcf5f1d2e2d9ce877d550dd3352bbd6e0527299e (diff) | |
download | efl-d83d89e882cfee31ba5ee5e9a8219e3b7e1c0efe.tar.gz |
csharp: Do some iterations on exit.
So we can kinda properly clean up things before shutting down.
-rw-r--r-- | src/bindings/mono/efl_mono/efl_all.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bindings/mono/efl_mono/efl_all.cs b/src/bindings/mono/efl_mono/efl_all.cs index 48a79b5a3a..e1f020746b 100644 --- a/src/bindings/mono/efl_mono/efl_all.cs +++ b/src/bindings/mono/efl_mono/efl_all.cs @@ -72,8 +72,12 @@ public static class All { // Try to cleanup everything before actually shutting down. Eina.Log.Debug("Calling GC before shutdown"); - System.GC.Collect(); - System.GC.WaitForPendingFinalizers(); + for (int i = 0; i < 3; i++) + { + System.GC.Collect(); + System.GC.WaitForPendingFinalizers(); + Efl.App.AppMain.Iterate(); + } Monitor.Enter(InitLock); MainLoopInitialized = false; |