[at-spi2-core: 1/2] misc: Do not warn on no reply from pending get_items call
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core: 1/2] misc: Do not warn on no reply from pending get_items call
- Date: Mon, 26 Aug 2019 19:56:33 +0000 (UTC)
commit b7ced66448c2865cf0fa0a7b5ed8fe572178ecf9
Author: Samuel Thibault <samuel thibault ens-lyon org>
Date: Sun Aug 25 23:19:10 2019 +0200
misc: Do not warn on no reply from pending get_items call
Like DBUS_ERROR_SERVICE_UNKNOWN, this may happen in normal use.
For instance, during the at-spi2-atk testsuite, in the
atk_test_accessible_set_cache_mask testcase, we may make the application
quit before get_items gets to be replied to.
atspi/atspi-misc.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/atspi/atspi-misc.c b/atspi/atspi-misc.c
index fddf601..c1eec22 100644
--- a/atspi/atspi-misc.c
+++ b/atspi/atspi-misc.c
@@ -531,8 +531,9 @@ handle_get_items (DBusPendingCall *pending, void *user_data)
{
const char *sender = dbus_message_get_sender (reply);
const char *error = NULL;
- if (!strcmp (dbus_message_get_error_name (reply),
- DBUS_ERROR_SERVICE_UNKNOWN))
+ const char *error_name = dbus_message_get_error_name (reply);
+ if (!strcmp (error_name, DBUS_ERROR_SERVICE_UNKNOWN)
+ || !strcmp (error_name, DBUS_ERROR_NO_REPLY))
{
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]