summaryrefslogtreecommitdiffstats
path: root/hcid/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/server.c')
-rw-r--r--hcid/server.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/hcid/server.c b/hcid/server.c
index 49f9ff54..a9878f06 100644
--- a/hcid/server.c
+++ b/hcid/server.c
@@ -38,12 +38,11 @@ static DBusHandlerResult filter_function(DBusConnection *conn,
{
if (dbus_message_is_signal(msg, DBUS_INTERFACE_LOCAL, "Disconnected") &&
strcmp(dbus_message_get_path(msg), DBUS_PATH_LOCAL) == 0) {
- debug("Received disconnected signal");
+ debug("Received local disconnected signal");
+ name_listener_indicate_disconnect(conn);
return DBUS_HANDLER_RESULT_HANDLED;
}
- name_listener_indicate_disconnect(conn);
-
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
}