mirror of git://git.sysmocom.de/ofono
hfp_hf_bluez5: Remove Card when modem is disabled
This commit is contained in:
parent
134b237344
commit
bff9432007
|
@ -272,6 +272,9 @@ static int hfp_disable(struct ofono_modem *modem)
|
|||
fd = g_io_channel_unix_get_fd(channel);
|
||||
shutdown(fd, SHUT_RDWR);
|
||||
|
||||
ofono_handsfree_card_remove(hfp->card);
|
||||
hfp->card = NULL;
|
||||
|
||||
g_at_chat_unref(info->chat);
|
||||
info->chat = NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue