[glib] Switch to using a mainloop when waiting for connection close



commit 69d698799563a0276550c339157a01d10d9e95dc
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Apr 4 14:56:17 2012 -0400

    Switch to using a mainloop when waiting for connection close
    
    GDBus heavily relies on idles for some of its cleanup operations,
    and not running a mainloop leads to things not getting cleaned
    up properly, which in turn leads to test failures, since the
    session bus singleton does not get removed.

 gio/tests/gdbus-tests.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/tests/gdbus-tests.c b/gio/tests/gdbus-tests.c
index c87a50f..58b1e60 100644
--- a/gio/tests/gdbus-tests.c
+++ b/gio/tests/gdbus-tests.c
@@ -158,7 +158,7 @@ _g_bus_get_priv (GBusType            bus_type,
 
 /* ---------------------------------------------------------------------------------------------------- */
 
-#if 1
+#if 0
 /* toggle refs are not easy to use (maybe not even safe) when multiple
  * threads are involved so implement this by busy-waiting for now
  */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]