summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/dbus-common.c')
-rw-r--r--hcid/dbus-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hcid/dbus-common.c b/hcid/dbus-common.c
index b1ece10d..74e2d3ae 100644
--- a/hcid/dbus-common.c
+++ b/hcid/dbus-common.c
@@ -219,8 +219,6 @@ int name_listener_add(DBusConnection *connection, const char *name,
char match_string[128];
int first;
- debug("name_listener_add(%s)", name);
-
if (!name_listener_initialized) {
if (!dbus_connection_add_filter(connection, name_exit_filter, NULL, NULL)) {
error("dbus_connection_add_filter() failed");
@@ -235,6 +233,8 @@ int name_listener_add(DBusConnection *connection, const char *name,
if (!first)
return 0;
+ debug("name_listener_add(%s)", name);
+
snprintf(match_string, sizeof(match_string),
"interface=%s,member=NameOwnerChanged,arg0=%s",
DBUS_INTERFACE_DBUS, name);