Bug 859727 - Remove routing logic from BluetoothScoManager, r=echou, r=rlin

This commit is contained in:
Gina Yeh 2013-04-18 17:41:17 +02:00
parent a90d86e3fc
commit 5dd5045ef8

View File

@ -83,13 +83,11 @@ BluetoothScoManager::NotifyAudioManager(const nsAString& aAddress)
NS_WARNING("Failed to notify bluetooth-sco-status-changed observsers!");
return;
}
am->SetForceForUse(am->USE_COMMUNICATION, am->FORCE_NONE);
} else {
if (NS_FAILED(obs->NotifyObservers(nullptr, BLUETOOTH_SCO_STATUS_CHANGED, aAddress.BeginReading()))) {
NS_WARNING("Failed to notify bluetooth-sco-status-changed observsers!");
return;
}
am->SetForceForUse(am->USE_COMMUNICATION, am->FORCE_BT_SCO);
}
}