mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 19:30:05 +01:00
Don't segfault on shutdown if we never managed to connect to dbus.
(cherry picked from commit 3a965fdadc)
This commit is contained in:
parent
eba45539af
commit
ce55565ecd
1 changed files with 2 additions and 1 deletions
|
|
@ -87,7 +87,8 @@ teardown(void)
|
|||
dbus_connection_unref(bus_info.connection);
|
||||
|
||||
RemoveBlockAndWakeupHandlers(block_handler, wakeup_handler, &bus_info);
|
||||
RemoveGeneralSocket(bus_info.fd);
|
||||
if (bus_info.fd != -1)
|
||||
RemoveGeneralSocket(bus_info.fd);
|
||||
bus_info.fd = -1;
|
||||
bus_info.connection = NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue