Merge "pal: reset isAbrEnabled flag when fb device start cnt goes zero"
diff --git a/device/src/Bluetooth.cpp b/device/src/Bluetooth.cpp
index cb67a90..f002ef4 100644
--- a/device/src/Bluetooth.cpp
+++ b/device/src/Bluetooth.cpp
@@ -1227,6 +1227,7 @@
if ((fbDev->deviceStartStopCount > 0) &&
(--fbDev->deviceStartStopCount == 0)) {
fbDev->isConfigured = false;
+ fbDev->isAbrEnabled = false;
}
if (fbDev->deviceCount > 0)
fbDev->deviceCount--;
@@ -1241,6 +1242,7 @@
if ((fbDev->deviceStartStopCount > 0) &&
(--fbDev->deviceStartStopCount == 0)) {
fbDev->isConfigured = false;
+ fbDev->isAbrEnabled = false;
}
if (fbDev->deviceCount > 0)
fbDev->deviceCount--;