mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
Revert back cl/522520410; iOS still need to broadcast all the data back.
PiperOrigin-RevId: 524442774
This commit is contained in:
committed by
Copybara-Service
parent
49aa73bbdd
commit
e57591aede
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user