mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bufix/a2dp_fail_connect_again_after_disconnect_v4.3' into 'release/v4.3'
component_bt: Fixed a2dp failing to connect again after disconnect(v4.3) See merge request espressif/esp-idf!21344
This commit is contained in:
commit
6298b8c8ff
@ -1175,6 +1175,7 @@ void bta_av_conn_chg(tBTA_AV_DATA *p_data)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((p_cb->conn_audio & mask) && bta_av_cb.audio_open_cnt) {
|
if ((p_cb->conn_audio & mask) && bta_av_cb.audio_open_cnt) {
|
||||||
|
bta_sys_conn_close(TSEP_TO_SYS_ID(p_scb->seps[p_scb->sep_idx].tsep), bta_av_cb.audio_open_cnt, p_scb->peer_addr);
|
||||||
/* this channel is still marked as open. decrease the count */
|
/* this channel is still marked as open. decrease the count */
|
||||||
bta_av_cb.audio_open_cnt--;
|
bta_av_cb.audio_open_cnt--;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user