From cf6137c1872e7f0b00f2ed5c27c7f35dff083d80 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Thu, 28 Feb 2013 13:01:10 -0300 Subject: hfp_hf_bluez5: Remove Card on RequestDisconnection For local initiated disconnection the GAtChat disconnect callback is not called. For this case, Audio Card remove function needs to be called. --- plugins/hfp_hf_bluez5.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/hfp_hf_bluez5.c') diff --git a/plugins/hfp_hf_bluez5.c b/plugins/hfp_hf_bluez5.c index d35a20fa..2db2fa5a 100644 --- a/plugins/hfp_hf_bluez5.c +++ b/plugins/hfp_hf_bluez5.c @@ -454,6 +454,9 @@ static DBusMessage *profile_disconnection(DBusConnection *conn, hfp = ofono_modem_get_data(modem); info = &hfp->info; + ofono_handsfree_card_remove(hfp->card); + hfp->card = NULL; + g_at_chat_unref(info->chat); info->chat = NULL; -- cgit v1.2.3