Don't dispatch while calling get_accessibility_bus_address
authorMike Gorse <mgorse@suse.com>
Mon, 2 Sep 2013 17:31:38 +0000 (12:31 -0500)
committerMike Gorse <mgorse@suse.com>
Mon, 2 Sep 2013 17:31:38 +0000 (12:31 -0500)
Calling dbus_connection_dispatch isn't really needed when fetching the
bus address--this is only done once.

atspi/atspi-misc.c

index 190a3eb..17f9bb2 100644 (file)
@@ -1518,8 +1518,6 @@ get_accessibility_bus_address_dbus (void)
                                                     message,
                                                     -1,
                                                     &error);
-  if (g_main_depth () == 0)
-    while (dbus_connection_dispatch (session_bus) == DBUS_DISPATCH_DATA_REMAINS);
   dbus_message_unref (message);
 
   if (!reply)