Switch to using a mainloop when waiting for connection close
authorMatthias Clasen <mclasen@redhat.com>
Wed, 4 Apr 2012 18:56:17 +0000 (14:56 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 4 Apr 2012 19:02:48 +0000 (15:02 -0400)
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

index c87a50f..58b1e60 100644 (file)
@@ -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
  */