Bluetooth: Audio: Fix broadcast sink PA sync callbacks register
The broadcast sink would continously register the PA sync callbacks, effectively creating an infinite loop. Fixed by correctly setting the boolean to prevent this. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
868806c211
commit
b0a01ac82f
1 changed files with 2 additions and 0 deletions
|
@ -574,6 +574,8 @@ static void sync_broadcast_pa(const struct bt_le_scan_recv_info *info,
|
|||
};
|
||||
|
||||
bt_le_per_adv_sync_cb_register(&cb);
|
||||
|
||||
pa_cb_registered = true;
|
||||
}
|
||||
|
||||
sink = broadcast_sink_free_get();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue