mirror of git://git.sysmocom.de/ofono
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.
This commit is contained in:
parent
bff9432007
commit
cf6137c187
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue