mirror of git://git.sysmocom.de/ofono
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:
parent
1ee6c6ea09
commit
134b237344
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue