summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-03-13 19:27:24 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-03-13 19:27:24 +0000
commit90e52037c886038eaca137521d342c9ef4c9115b (patch)
treeaed396982d2cae812325ff91288de222801e0c13
parent054fe368560b0cdd9ca60e9e8acfb25e925b7b78 (diff)
Unregister the object path for the agent before closing the connection
-rw-r--r--hcid/passkey-agent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hcid/passkey-agent.c b/hcid/passkey-agent.c
index 267b08b3..2b2bb5dc 100644
--- a/hcid/passkey-agent.c
+++ b/hcid/passkey-agent.c
@@ -194,6 +194,8 @@ static int register_agent(DBusConnection *conn, const char *agent_path,
dbus_connection_flush(conn);
+ dbus_connection_unregister_object_path(conn, agent_path);
+
return 0;
}