diff options
author | Ajay Kumar <ajayku@codeaurora.org> | 2015-02-17 17:32:33 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-03-03 12:57:58 -0800 |
commit | 4a8aae4b75901fb03409233d06d74efa29976e80 (patch) | |
tree | 6120602780f97d6ea15b67acf64dbb56d3ff6607 | |
parent | d9daafe18844b05a934b593021882b07a829ebda (diff) | |
download | android_packages_apps_Bluetooth-4a8aae4b75901fb03409233d06d74efa29976e80.tar.gz android_packages_apps_Bluetooth-4a8aae4b75901fb03409233d06d74efa29976e80.tar.bz2 android_packages_apps_Bluetooth-4a8aae4b75901fb03409233d06d74efa29976e80.zip |
Bluetooth: Stopping all services in case of enable Timeout
We are not stopping services in case of enable timeout while
all profile services will stop only when we explicitly stop
services. This will enable all services to cleanup
properly and allocate resources for the fresh retrial.
Change-Id: I6a2e4ba87bdbbcc6864f1e26964f6e55bfefc03b
CRs-Fixed: 779057
-rw-r--r-- | src/com/android/bluetooth/btservice/AdapterState.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/bluetooth/btservice/AdapterState.java b/src/com/android/bluetooth/btservice/AdapterState.java index 419300ac3..3469068c4 100644 --- a/src/com/android/bluetooth/btservice/AdapterState.java +++ b/src/com/android/bluetooth/btservice/AdapterState.java @@ -333,6 +333,7 @@ final class AdapterState extends StateMachine { adapterService.ssrcleanupNative(false); mPendingCommandState.setTurningOn(false); transitionTo(mOffState); + adapterService.stopProfileServices(); notifyAdapterStateChange(BluetoothAdapter.STATE_OFF); break; case STOP_TIMEOUT: |