summaryrefslogtreecommitdiffstats
path: root/bus/dispatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'bus/dispatch.c')
-rw-r--r--bus/dispatch.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/bus/dispatch.c b/bus/dispatch.c
index 21d57ae1..6e3a61e3 100644
--- a/bus/dispatch.c
+++ b/bus/dispatch.c
@@ -1070,9 +1070,11 @@ check_existent_service_activation (BusContext *context,
bus_test_run_everything (context);
- /* now wait for the message bus to hear back from the activated service */
- bus_test_run_bus_loop (context);
-
+ if (dbus_connection_get_dispatch_status (connection) ==
+ DBUS_DISPATCH_COMPLETE)
+ /* now wait for the message bus to hear back from the activated service */
+ bus_test_run_bus_loop (context);
+
/* and process everything again */
bus_test_run_everything (context);