diff --git a/dom/bluetooth/BluetoothHfpManager.cpp b/dom/bluetooth/BluetoothHfpManager.cpp index 481dfe760bb..6838becdb8f 100644 --- a/dom/bluetooth/BluetoothHfpManager.cpp +++ b/dom/bluetooth/BluetoothHfpManager.cpp @@ -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; }