Bug 912376 - SCO wouldn't be dropped after SLC was disconnected, r=btian

This commit is contained in:
Eric Chou 2013-10-03 10:12:46 +08:00
Родитель f22ebd65e5
Коммит cc6efe2268
1 изменённых файлов: 2 добавлений и 8 удалений

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

@ -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;
}