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(+)
diff --git a/plugins/hfp_hf_bluez5.c b/plugins/hfp_hf_bluez5.c
index 93c271b..6ee760e 100644
--- a/plugins/hfp_hf_bluez5.c
+++ b/plugins/hfp_hf_bluez5.c
@@ -450,6 +450,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;
--
1.7.11.7
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono