mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 23:00:05 +01:00
config: check connection != NULL before getting dbus' dispatch status.
(cherry picked from commit d232665223)
This commit is contained in:
parent
f0ba770716
commit
7dde5a694a
1 changed files with 3 additions and 2 deletions
|
|
@ -56,8 +56,9 @@ wakeup_handler(pointer data, int err, pointer read_mask)
|
|||
if (info->connection && FD_ISSET(info->fd, (fd_set *) read_mask)) {
|
||||
do {
|
||||
dbus_connection_read_write_dispatch(info->connection, 0);
|
||||
} while (dbus_connection_get_dispatch_status(info->connection) ==
|
||||
DBUS_DISPATCH_DATA_REMAINS);
|
||||
} while (info->connection &&
|
||||
dbus_connection_get_is_connected(info->connection) &&
|
||||
dbus_connection_get_dispatch_status(info->connection) == DBUS_DISPATCH_DATA_REMAINS);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue