Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 27d2a542 authored by Michal Belusiak's avatar Michal Belusiak
Browse files

Bass: Prevent adding already synced broadcast in addSelectSourceRequest

addSelectSourceRequest adds operations to the queue, which later is
processed by handleSelectSourceRequest.

handleSelectSourceRequest already filtered out operations on already
synced broadcast.

This CL prevent adding already synced broadcast to the queue to avoid
additional operation of adding and retrieving from queue.

It can be observed in scenario when an unintentional paused sink is
triggered by a music pause while the remote unsyncs from BIS and PA.
Subsequently, addSelectSourceRequest is called on every onScanResult,
even if the source is already synced.

Bug: 390189678
Flag: EXEMPT, regression covered by unit tests
Test: atest BassClientServiceTest
Change-Id: I8056a9ae048e52a87b3bd15e3ef60799d7edcea4
parent bc458129
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment