summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-06-06 10:04:34 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-06-06 10:04:34 +0000
commitc5d06bc0ae91dfe6c7fae18195f9874af3566e9f (patch)
tree4776c131948e87920bce2dcf8ccf76d49ea6f1c6
parent0472470e5059e702f0e7e69ee0155dfea11baa25 (diff)
And another remove of sending helper
-rw-r--r--hcid/adapter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hcid/adapter.c b/hcid/adapter.c
index 2351b395..dc2bdbf3 100644
--- a/hcid/adapter.c
+++ b/hcid/adapter.c
@@ -770,7 +770,8 @@ static void confirm_mode_cb(struct agent *agent, DBusError *err, void *data)
if (err && dbus_error_is_set(err)) {
reply = dbus_message_new_error(req->msg, err->name, err->message);
- dbus_connection_send_and_unref(req->conn, reply);
+ dbus_connection_send(req->conn, reply, NULL);
+ dbus_connection_unref(reply);
goto cleanup;
}