Bug 1211435: Cleanup AVRCP interfaces when Bluetooth adapter gets switched off, r=shuang

Cleaning up AVRCP was forgotten in bug 1199110.
This commit is contained in:
Thomas Zimmermann 2015-10-06 10:12:38 +02:00
parent 5db5ee8b4c
commit bc620fb2b2

View File

@ -1890,9 +1890,11 @@ BluetoothServiceBluedroid::AdapterStateChangedNotification(bool aState)
if (!mEnabled) {
static void (* const sDeinitManager[])(BluetoothProfileResultHandler*) = {
BluetoothHfpManager::DeinitHfpInterface,
// Cleanup interfaces in opposite order to initialization.
BluetoothGattManager::DeinitGattInterface,
BluetoothAvrcpManager::DeinitAvrcpInterface,
BluetoothA2dpManager::DeinitA2dpInterface,
BluetoothGattManager::DeinitGattInterface
BluetoothHfpManager::DeinitHfpInterface
};
// Return error if BluetoothService is unavailable