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
Родитель 5db5ee8b4c
Коммит bc620fb2b2
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

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