summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-05-20 20:23:53 -0300
committerVitor Sousa <vitorsousa@expertisesolutions.com.br>2019-05-31 18:01:04 -0300
commitd83d89e882cfee31ba5ee5e9a8219e3b7e1c0efe (patch)
tree53994481934e6bd830f9858363977f6d5578be6d
parentfcf5f1d2e2d9ce877d550dd3352bbd6e0527299e (diff)
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.cs8
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
72 { 72 {
73 // Try to cleanup everything before actually shutting down. 73 // Try to cleanup everything before actually shutting down.
74 Eina.Log.Debug("Calling GC before shutdown"); 74 Eina.Log.Debug("Calling GC before shutdown");
75 System.GC.Collect(); 75 for (int i = 0; i < 3; i++)
76 System.GC.WaitForPendingFinalizers(); 76 {
77 System.GC.Collect();
78 System.GC.WaitForPendingFinalizers();
79 Efl.App.AppMain.Iterate();
80 }
77 81
78 Monitor.Enter(InitLock); 82 Monitor.Enter(InitLock);
79 MainLoopInitialized = false; 83 MainLoopInitialized = false;