hfp_hf_bluez5: Remove Card if SLC is disconnected

This patch removes previous registered Audio Card when the remote
Bluetooth device triggers the service level disconnection.
This commit is contained in:
Claudio Takahasi 2013-02-28 13:01:08 -03:00 committed by Denis Kenzior
parent 1ee6c6ea09
commit 134b237344
1 changed files with 3 additions and 0 deletions

View File

@ -129,6 +129,9 @@ static void hfp_disconnected_cb(gpointer user_data)
ofono_modem_set_powered(modem, FALSE);
ofono_handsfree_card_remove(hfp->card);
hfp->card = NULL;
g_at_chat_unref(info->chat);
info->chat = NULL;
}