Allow send and receive surfaces at the same time.

PiperOrigin-RevId: 666417182
This commit is contained in:
Francis Tsui
2024-08-22 11:04:35 -07:00
committed by Copybara-Service
parent f2aed20443
commit 52dac14a3c
-9
View File
@@ -2038,15 +2038,6 @@ void NearbySharingServiceImpl::InvalidateAdvertisingState() {
return;
}
// We're scanning for other nearby devices. Don't advertise.
if (is_scanning_) {
StopAdvertising();
NL_VLOG(1)
<< __func__
<< ": Stopping advertising because we're scanning for other devices.";
return;
}
if (is_transferring_) {
StopAdvertising();
NL_VLOG(1)