summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-service.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/dbus-service.c')
-rw-r--r--hcid/dbus-service.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c
index 9286837f..47449acb 100644
--- a/hcid/dbus-service.c
+++ b/hcid/dbus-service.c
@@ -772,6 +772,8 @@ int unregister_service_agent(DBusConnection *conn, const char *sender, const cha
if (!dbus_connection_unregister_object_path(conn, path))
return -ENOMEM;
+ name_listener_remove(conn, sender, (name_cb_t) service_agent_exit, conn);
+
l = slist_find(services, path, (cmp_func_t) strcmp);
if (l) {
void *p = l->data;