[Nearby Connections] Fix a bug that could cause BLE scan keeps fetching the un-interseted advertisement.

PiperOrigin-RevId: 790972086
This commit is contained in:
Edwin Wu
2025-08-04 18:22:19 -07:00
committed by Copybara-Service
parent c55262ad13
commit 05e997dc52
@@ -903,6 +903,7 @@ void DiscoveredPeripheralTracker::FetchRawAdvertisementsInThread(
LOG(WARNING)
<< ": Ignore the fetched GATT advertisement from server due to it "
"is not interesting header now.";
fetching_advertisements_.erase(advertisement_header);
return;
}