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

Skip to content
Commit 6096680d authored by Michal Belusiak's avatar Michal Belusiak Committed by Michal Belusiak (xWF)
Browse files

le_periodic_sync_manager: Check if established sync was pending

That check prevents from executing operations on periodic_sync which
was not started yet. That is possible when there are two requests for
the same broadcaster, typical on pair of buds.

Fail scenario with inactive broadcaster:
1. HandleStartSyncRequest with periodic_sync A
2. OnStartSyncTimeout inform upper layer about A failure, cancel and
remove A
3. HandleStartSyncRequest with periodic_sync B (the same broadcaster)
4. HandleLePeriodicAdvertisingSyncEstablished with error 68 because of
canceling A, informing upper layer about B failure because A is already
removed, removing B.

Bug: 354890418
Test: atest PeriodicSyncManagerTest
Flag: Exempt, trivial fix covered with unit test
Change-Id: I67f4949e2cdd02c5e9757515393f6ce43ca627db
parent 8a754ad9
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