Bug 1238991: Don't connect Bluetooth OPP manager before service channel is known, r=btian

The Bluetooth Opp manager requires the service channel of the remote
service to connect successfully. If the service channel isn't known,
it sends an SDP update request to get the value from the remote device.

The current code will still try to connect with an invalid service
channel. This patch fixes the issue by returning early after sending
the SDP update request.
This commit is contained in:
Thomas Zimmermann 2016-01-14 14:55:49 +01:00
Родитель 985e3cea89
Коммит e0a6a77e8f
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -1640,6 +1640,8 @@ BluetoothOppManager::OnGetServiceChannel(
OnSocketConnectError(mSocket);
return;
}
return; // We update the service records before we connect.
}
mSocket->Connect(aDeviceAddress, aServiceUuid,