Commit ddce48ed authored by Elvis Pranskevichus's avatar Elvis Pranskevichus Committed by Daniel Stone
Browse files

Config: D-Bus: Fix dbus_bus_request_name failure check

The code in connect_hook incorrectly checks for dbus_bus_request_name failure.
The dbus_bus_request_name error indicator is -1, not 0. This leads
to subsequent assertion failure in libdbus.
parent 58332894
......@@ -355,8 +355,8 @@ connect_hook(DBusConnection *connection, void *data)
if (!dbus_bus_request_name(info->connection, info->busname,
0, &error)) {
dbus_bus_request_name(info->connection, info->busname, 0, &error);
if (dbus_error_is_set(&error)) {
ErrorF("[config/dbus] couldn't take over org.x.config: %s (%s)\n",, error.message);
goto err_start;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment