Skip to content

Commit

Permalink
Merge branch 'bufix/a2dp_fail_connect_again_after_disconnect' into 'm…
Browse files Browse the repository at this point in the history
…aster'

component_bt: Fixed a2dp failing to connect again after disconnect

Closes BT-1803

See merge request espressif/esp-idf!16947
  • Loading branch information
jack0c committed Nov 30, 2022
2 parents 7869f4e + cbf3467 commit 3601243
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/bt/host/bluedroid/bta/av/bta_av_act.c
Original file line number Diff line number Diff line change
Expand Up @@ -1175,6 +1175,7 @@ void bta_av_conn_chg(tBTA_AV_DATA *p_data)
}
} else {
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 */
bta_av_cb.audio_open_cnt--;
}
Expand Down

0 comments on commit 3601243

Please sign in to comment.