зеркало из 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
|
||||
BluetoothHfpManager::DisconnectSco()
|
||||
{
|
||||
if (!IsConnected()) {
|
||||
BT_WARNING("BluetoothHfpManager is not connected");
|
||||
return false;
|
||||
}
|
||||
|
||||
SocketConnectionStatus status = mScoSocket->GetConnectionStatus();
|
||||
if (status != SOCKET_CONNECTED && status != SOCKET_CONNECTING) {
|
||||
BT_WARNING("No SCO exists");
|
||||
if (!IsScoConnected()) {
|
||||
BT_WARNING("SCO has been already disconnected.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче