diff options
Diffstat (limited to 'audio/headset.c')
-rw-r--r-- | audio/headset.c | 9 |
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); |