mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Enhance on advertising
PiperOrigin-RevId: 655044204
This commit is contained in:
committed by
Copybara-Service
parent
e2aac58f2f
commit
52c80303e3
@@ -170,7 +170,7 @@ bool BleV2Medium::StartAdvertising(const BleAdvertisementData& advertising_data,
|
||||
bool BleV2Medium::StopAdvertising() {
|
||||
absl::MutexLock lock(&mutex_);
|
||||
NEARBY_LOGS(INFO) << __func__ << ": Stop advertising.";
|
||||
bool result;
|
||||
bool result = true;
|
||||
if (is_gatt_publisher_started_) {
|
||||
bool stop_gatt_result = StopGattAdvertising();
|
||||
if (!stop_gatt_result) {
|
||||
|
||||
Reference in New Issue
Block a user