Bug 851046 - Use Bluetooth Managers Disconnect. r=mrbkap, a=tef+
authorKyle Machulis <kyle@nonpolynomial.com>
Wed, 03 Apr 2013 19:05:25 -0700
changeset 119008 52b929f9c1a45ccc65df3a468ff4e7373517024a
parent 119007 a3eb01854dcb499cd4108ce43604792a25068dea
child 119009 c6215c786969f69b7c25628243981d4469c21919
push id645
push userryanvm@gmail.com
push dateTue, 09 Apr 2013 16:07:57 +0000
reviewersmrbkap, tef
bugs851046
milestone18.0
Bug 851046 - Use Bluetooth Managers Disconnect. r=mrbkap, a=tef+
dom/bluetooth/linux/BluetoothDBusService.cpp
--- a/dom/bluetooth/linux/BluetoothDBusService.cpp
+++ b/dom/bluetooth/linux/BluetoothDBusService.cpp
@@ -835,27 +835,27 @@ public:
 class ShutdownProfileManagersRunnable : public nsRunnable
 {
 public:
   NS_IMETHOD
   Run()
   {
     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;
   }
 };
 
 class PrepareAdapterRunnable : public nsRunnable
 {