summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/dbus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/dbus.c b/config/dbus.c
index c8675120f..6fe061815 100644
--- a/config/dbus.c
+++ b/config/dbus.c
@@ -355,8 +355,8 @@ connect_hook(DBusConnection *connection, void *data)
dbus_error_init(&error);
- 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.name, error.message);
goto err_start;