X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=atspi%2Fatspi-misc.c;h=678b566f14a31b04e401f23113f4c609a2412bb2;hb=8b853b5e6a4b0bba2b93ea411d8468b3db83eda5;hp=65003dfae27bb70adf219eb85c3c0102043b2c04;hpb=ce84aa421cb6e12272ce6acc753363dc8daf9c45;p=platform%2Fupstream%2Fat-spi2-core.git diff --git a/atspi/atspi-misc.c b/atspi/atspi-misc.c index 65003df..678b566 100644 --- a/atspi/atspi-misc.c +++ b/atspi/atspi-misc.c @@ -229,6 +229,7 @@ get_application (const char *bus_name) char *bus_name_dup; DBusMessage *message; DBusPendingCall *pending = NULL; + dbus_bool_t result; if (!app_hash) { @@ -249,9 +250,9 @@ get_application (const char *bus_name) message = dbus_message_new_method_call (bus_name, atspi_path_root, atspi_interface_application, "GetApplicationBusAddress"); - dbus_connection_send_with_reply (app->bus, message, &pending, 2000); + result = dbus_connection_send_with_reply (app->bus, message, &pending, 2000); dbus_message_unref (message); - if (!pending) + if (!result || !pending) { g_hash_table_remove (app_hash, bus_name_dup); return NULL;