From e57591aede146e9da86411c3a5fbbb72d3e1c63b Mon Sep 17 00:00:00 2001 From: Edwin Wu Date: Fri, 14 Apr 2023 19:50:16 -0700 Subject: [PATCH] Revert back cl/522520410; iOS still need to broadcast all the data back. PiperOrigin-RevId: 524442774 --- internal/platform/ble_v2.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/internal/platform/ble_v2.cc b/internal/platform/ble_v2.cc index 6fd759c9..584062d3 100644 --- a/internal/platform/ble_v2.cc +++ b/internal/platform/ble_v2.cc @@ -82,12 +82,9 @@ bool BleV2Medium::StartScanning(const Uuid& service_uuid, [this](api::ble_v2::BlePeripheral& peripheral, BleAdvertisementData advertisement_data) { MutexLock lock(&mutex_); - if (peripherals_.contains(&peripheral)) { - NEARBY_LOGS(INFO) - << "There is no need to callback due to peripheral impl=" - << &peripheral << ", which already exists."; - return; - } else { + if (!peripherals_.contains(&peripheral)) { + NEARBY_LOGS(INFO) << "Peripheral impl=" << &peripheral + << " is not existed; adds it to the map."; peripherals_.insert(&peripheral); }