Bluetooth: BAP: Release read_buf_sem in receive_state_updated earlier
The semaphore should be returned before calling the application callbacks. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
f8d1d354c5
commit
ff9a9fe031
1 changed files with 2 additions and 2 deletions
|
@ -245,13 +245,13 @@ static void receive_state_updated(struct bt_conn *conn,
|
||||||
bt_debug_dump_recv_state(internal_state);
|
bt_debug_dump_recv_state(internal_state);
|
||||||
net_buf_put_recv_state(internal_state);
|
net_buf_put_recv_state(internal_state);
|
||||||
bass_notify_receive_state(internal_state);
|
bass_notify_receive_state(internal_state);
|
||||||
|
k_sem_give(&read_buf_sem);
|
||||||
|
|
||||||
if (scan_delegator_cbs != NULL &&
|
if (scan_delegator_cbs != NULL &&
|
||||||
scan_delegator_cbs->recv_state_updated != NULL) {
|
scan_delegator_cbs->recv_state_updated != NULL) {
|
||||||
scan_delegator_cbs->recv_state_updated(conn,
|
scan_delegator_cbs->recv_state_updated(conn,
|
||||||
&internal_state->state);
|
&internal_state->state);
|
||||||
}
|
}
|
||||||
|
|
||||||
k_sem_give(&read_buf_sem);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void bis_sync_request_updated(struct bt_conn *conn,
|
static void bis_sync_request_updated(struct bt_conn *conn,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue