Skip to content

Commit f89d1c6

Browse files
committed
Bluetooth: CAP: Add missing check for abort in the started cb
bt_cap_initiator_started did not have a check for aborted like all the other callbacks, which could cause the procedure to continue even if it was aborted. Signed-off-by: Emil Gydesen <[email protected]>
1 parent 4bf0381 commit f89d1c6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

subsys/bluetooth/audio/cap_initiator.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1827,6 +1827,14 @@ void bt_cap_initiator_started(struct bt_cap_stream *cap_stream)
18271827
active_proc->proc_done_cnt, active_proc->proc_cnt);
18281828
}
18291829

1830+
if (bt_cap_common_proc_is_aborted()) {
1831+
if (bt_cap_common_proc_all_handled()) {
1832+
cap_initiator_unicast_audio_proc_complete();
1833+
}
1834+
1835+
return;
1836+
}
1837+
18301838
if (!bt_cap_common_proc_is_done()) {
18311839
struct bt_cap_initiator_proc_param *proc_param;
18321840
struct bt_cap_stream *next_cap_stream;

0 commit comments

Comments
 (0)