зеркало из https://github.com/mozilla/gecko-dev.git
Bug 912376 - SCO wouldn't be dropped after SLC was disconnected, r=btian
This commit is contained in:
Родитель
f22ebd65e5
Коммит
cc6efe2268
|
@ -1653,14 +1653,8 @@ BluetoothHfpManager::ConnectSco(BluetoothReplyRunnable* aRunnable)
|
||||||
bool
|
bool
|
||||||
BluetoothHfpManager::DisconnectSco()
|
BluetoothHfpManager::DisconnectSco()
|
||||||
{
|
{
|
||||||
if (!IsConnected()) {
|
if (!IsScoConnected()) {
|
||||||
BT_WARNING("BluetoothHfpManager is not connected");
|
BT_WARNING("SCO has been already disconnected.");
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
SocketConnectionStatus status = mScoSocket->GetConnectionStatus();
|
|
||||||
if (status != SOCKET_CONNECTED && status != SOCKET_CONNECTING) {
|
|
||||||
BT_WARNING("No SCO exists");
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче