Internal change

PiperOrigin-RevId: 384608597
This commit is contained in:
Edwin Wu
2021-07-13 20:09:26 -07:00
committed by Copybara-Service
parent 75c07c01c4
commit 386daf26a2
+6
View File
@@ -44,6 +44,12 @@ bool WifiLan::StartAdvertising(const std::string& service_id,
return false;
}
if (IsAdvertisingLocked(service_id)) {
NEARBY_LOGS(INFO)
<< "Failed to WifiLan advertise because we're already advertising.";
return false;
}
if (!IsAvailableLocked()) {
NEARBY_LOG(INFO,
"Can't turn on WifiLan advertising. WifiLan is not available.");