diff --git a/src/shared/bass.c b/src/shared/bass.c
index 7b9e0da..11ad59e 100644
--- a/src/shared/bass.c
+++ b/src/shared/bass.c
gatt_db_attribute_write_result(attrib, id, 0x00);
+ for (entry = queue_get_entries(bass->cp_handlers); entry;
+ entry = entry->next) {
+ struct bt_bass_cp_handler *cb = entry->data;
+
+ if (cb->handler) {
+ ret = cb->handler(bcast_src,
+ BT_BASS_SET_BCAST_CODE,
+ params, cb->data);
+ if (ret)
+ DBG(bass, "Unable to handle Set "
+ "Broadcast Code operation");
+ }
+ }
+
if (!bass_trigger_big_sync(bcast_src)) {
bcast_src->enc = BT_BASS_BIG_ENC_STATE_DEC;
free(notif->iov_base);
free(notif);
- return;
- }
-
- for (entry = queue_get_entries(bass->cp_handlers); entry;
- entry = entry->next) {
- struct bt_bass_cp_handler *cb = entry->data;
-
- if (cb->handler) {
- ret = cb->handler(bcast_src,
- BT_BASS_SET_BCAST_CODE,
- params, cb->data);
- if (ret)
- DBG(bass, "Unable to handle Set "
- "Broadcast Code operation");
- }
}
}