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.
This commit is contained in:
Matthias Clasen 2012-04-04 14:56:17 -04:00
parent f1d4d3a4a5
commit 69d6987995

View 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
*/