{
DBusMessage *message;
DBusPendingCall *pending = NULL;
+ dbus_bool_t result;
message = dbus_message_new_method_call (SPI_DBUS_NAME_REGISTRY,
ATSPI_DBUS_PATH_REGISTRY,
if (!message)
return;
- dbus_connection_send_with_reply (app->bus, message, &pending, -1);
+ result = dbus_connection_send_with_reply (app->bus, message, &pending, -1);
dbus_message_unref (message);
- if (!pending)
+ if (!result || !pending)
{
spi_global_app_data->events_initialized = TRUE;
return;
if (!message)
return;
pending = NULL;
- dbus_connection_send_with_reply (app->bus, message, &pending, -1);
+ result = dbus_connection_send_with_reply (app->bus, message, &pending, -1);
dbus_message_unref (message);
- if (!pending)
+ if (!result || !pending)
{
spi_global_app_data->events_initialized = TRUE;
return;
if (!message)
return;
pending = NULL;
- dbus_connection_send_with_reply (app->bus, message, &pending, -1);
+ result = dbus_connection_send_with_reply (app->bus, message, &pending, -1);
dbus_message_unref (message);
- if (!pending)
+ if (!result || !pending)
{
spi_global_app_data->events_initialized = TRUE;
return;