From 52dac14a3cf326165b48c6b4ab0dfb985f2f7014 Mon Sep 17 00:00:00 2001 From: Francis Tsui Date: Thu, 22 Aug 2024 11:03:02 -0700 Subject: [PATCH] Allow send and receive surfaces at the same time. PiperOrigin-RevId: 666417182 --- sharing/nearby_sharing_service_impl.cc | 9 --------- 1 file changed, 9 deletions(-) diff --git a/sharing/nearby_sharing_service_impl.cc b/sharing/nearby_sharing_service_impl.cc index 88187851..a7dc992b 100644 --- a/sharing/nearby_sharing_service_impl.cc +++ b/sharing/nearby_sharing_service_impl.cc @@ -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)