summaryrefslogtreecommitdiffstats
path: root/audio/headset.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-06-06 10:20:21 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-06-06 10:20:21 +0000
commitf269e27ce7e39e6484cf02a137dcda7458a7fd85 (patch)
tree6a88312826c2db34034ceca65afa9503a69a4f9e /audio/headset.c
parent5c4f688af6ad797033b233521cd75852602fa93d (diff)
Fix the last remains of sending helpers
Diffstat (limited to 'audio/headset.c')
-rw-r--r--audio/headset.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/audio/headset.c b/audio/headset.c
index 1cdaf746..bb28affb 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -321,7 +321,8 @@ static void sco_connect_cb(GIOChannel *chan, int err, const bdaddr_t *src,
if (p->msg) {
DBusMessage *reply = dbus_message_new_method_return(p->msg);
- send_message_and_unref(dev->conn, reply);
+ dbus_connection_send(dev->conn, reply, NULL);
+ dbus_message_unref(reply);
}
pending_connect_finalize(dev);
@@ -374,7 +375,8 @@ static void hfp_slc_complete(struct audio_device *dev)
if (p->msg) {
DBusMessage *reply = dbus_message_new_method_return(p->msg);
- send_message_and_unref(dev->conn, reply);
+ dbus_connection_send(dev->conn, reply, NULL);
+ dbus_message_unref(reply);
}
if (p->target_state == HEADSET_STATE_CONNECTED) {
@@ -717,7 +719,8 @@ static void rfcomm_connect_cb(GIOChannel *chan, int err, const bdaddr_t *src,
if (p->msg) {
DBusMessage *reply = dbus_message_new_method_return(p->msg);
- send_message_and_unref(dev->conn, reply);
+ dbus_connection_send(dev->conn, reply, NULL);
+ dbus_message_unref(reply);
}
pending_connect_finalize(dev);