config: check connection != NULL before getting dbus' dispatch status.
(cherry picked from commit d232665223
)
This commit is contained in:
parent
f0ba770716
commit
7dde5a694a
|
@ -56,8 +56,9 @@ wakeup_handler(pointer data, int err, pointer read_mask)
|
||||||
if (info->connection && FD_ISSET(info->fd, (fd_set *) read_mask)) {
|
if (info->connection && FD_ISSET(info->fd, (fd_set *) read_mask)) {
|
||||||
do {
|
do {
|
||||||
dbus_connection_read_write_dispatch(info->connection, 0);
|
dbus_connection_read_write_dispatch(info->connection, 0);
|
||||||
} while (dbus_connection_get_dispatch_status(info->connection) ==
|
} while (info->connection &&
|
||||||
DBUS_DISPATCH_DATA_REMAINS);
|
dbus_connection_get_is_connected(info->connection) &&
|
||||||
|
dbus_connection_get_dispatch_status(info->connection) == DBUS_DISPATCH_DATA_REMAINS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user