Bug 851046 - Use (Bluetooth*Managers)->Disconnect() instead of (Bluetooth*Managers)->CloseSocket() since managers are not UnixSocketConsumer anymore. r=mrbkap

This commit is contained in:
Eric Chou 2013-03-15 14:55:19 +08:00
parent 2ef6d8052f
commit d11f230c13

View File

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