diff --git a/dom/bluetooth/linux/BluetoothDBusService.cpp b/dom/bluetooth/linux/BluetoothDBusService.cpp index c3f3e710c6c..602d7e5758a 100644 --- a/dom/bluetooth/linux/BluetoothDBusService.cpp +++ b/dom/bluetooth/linux/BluetoothDBusService.cpp @@ -833,17 +833,17 @@ public: { BluetoothHfpManager* hfp = BluetoothHfpManager::Get(); if (hfp) { - hfp->CloseSocket(); + hfp->Disconnect(); } BluetoothOppManager* opp = BluetoothOppManager::Get(); if (opp) { - opp->CloseSocket(); + opp->Disconnect(); } BluetoothScoManager* sco = BluetoothScoManager::Get(); if (sco) { - sco->CloseSocket(); + sco->Disconnect(); } return NS_OK;