mirror of git://git.sysmocom.de/ofono
hfp_hf_bluez5: Remove Card when SLC fails
This patch removes the previously created Audio Card if the service level negotiation fails.
This commit is contained in:
parent
fb9b54bc2c
commit
1ee6c6ea09
|
@ -112,6 +112,9 @@ static void slc_failed(gpointer userdata)
|
|||
ofono_error("Service level connection failed");
|
||||
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