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

Skip to content
Commit 50309642 authored by Hsin-chen Chuang's avatar Hsin-chen Chuang
Browse files

floss: Fix edge case when adv started after client has disconnected

If a client disconnected right after StartAdvertisingSet before
OnAdvertisingSetStarted, the advertiser could be leaked and never
cleaned up.

This patch marks the not-yet-valid advertising sets as stopped and
remove them on they started.

Since the function now lives in bluetooth_adv.rs and has the full access
to the internal structures, we could get rid of the unnecessary clone.

Bug: 242083290
Tag: #floss
Test: mmm packages/modules/Bluetooth
Test: Manual test advertising with NearbyShare
Flag: EXEMPT, Floss-only changes
Change-Id: I7b2b0837d886b3160b43ce3b61500a06099fbce8
parent 94d0afcd
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