diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2013-02-28 13:01:10 -0300 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2013-02-28 10:11:05 -0600 |
commit | cf6137c1872e7f0b00f2ed5c27c7f35dff083d80 (patch) | |
tree | fe1b90945fcd94dd9751356537a342131f98d24c /plugins/hfp_hf_bluez5.c | |
parent | bff94320072b2a96078444062873aea94e1f4974 (diff) | |
download | ofono-cf6137c1872e7f0b00f2ed5c27c7f35dff083d80.tar.bz2 |
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.
Diffstat (limited to 'plugins/hfp_hf_bluez5.c')
-rw-r--r-- | plugins/hfp_hf_bluez5.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/hfp_hf_bluez5.c b/plugins/hfp_hf_bluez5.c index d35a20fa..2db2fa5a 100644 --- a/plugins/hfp_hf_bluez5.c +++ b/plugins/hfp_hf_bluez5.c @@ -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; |