mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Skip SDP check for FP rfcomm connection on Windows
The SDP checks fails but rfcomm connection works. Skipping the SDP check does not seem to have any ill side effects. PiperOrigin-RevId: 551370531
This commit is contained in:
committed by
Copybara-Service
parent
f3bbb8caeb
commit
974d4b357c
@@ -311,7 +311,10 @@ std::unique_ptr<api::BluetoothSocket> BluetoothClassicMedium::ConnectToService(
|
||||
RfcommDeviceService requested_service(
|
||||
GetRequestedService(current_device, service));
|
||||
|
||||
if (!CheckSdp(requested_service)) {
|
||||
if (!FeatureFlags::GetInstance()
|
||||
.GetFlags()
|
||||
.skip_service_discovery_before_connecting_to_rfcomm &&
|
||||
!CheckSdp(requested_service)) {
|
||||
NEARBY_LOGS(ERROR) << __func__ << ": Invalid SDP.";
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user