diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2013-02-28 13:01:07 -0300 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2013-02-28 10:10:30 -0600 |
commit | 1ee6c6ea09fcf1e2c538b65fb4fb55fcc4dd0415 (patch) | |
tree | e6f35cd70502184cf5e21b98556f63c9efd524b5 /plugins/hfp_hf_bluez5.c | |
parent | fb9b54bc2cef4393db5bddcc2fd044bf8f3fe6d9 (diff) | |
download | ofono-1ee6c6ea09fcf1e2c538b65fb4fb55fcc4dd0415.tar.bz2 |
hfp_hf_bluez5: Remove Card when SLC fails
This patch removes the previously created Audio Card if the service
level negotiation fails.
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 3960d7a6..98cef7cc 100644 --- a/plugins/hfp_hf_bluez5.c +++ b/plugins/hfp_hf_bluez5.c @@ -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; } |