diff options
author | Lauro Moura <lauromoura@expertisesolutions.com.br> | 2019-05-20 20:23:53 -0300 |
---|---|---|
committer | Lauro Moura <lauromoura@expertisesolutions.com.br> | 2019-05-21 17:29:34 -0300 |
commit | 173252316e06690cdf2f2d429fa8c3e879241b5d (patch) | |
tree | 370d78c6458d677817da18eab3d257e9d1114473 | |
parent | 5a73c58c1a84661749f0fcc85f712e2bb44d41ba (diff) | |
download | efl-173252316e06690cdf2f2d429fa8c3e879241b5d.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; |