Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67e6286e authored by Srinu Jella's avatar Srinu Jella Committed by android-build-merger
Browse files

Merge "Stop profile services when Bluetooth enable times out"

am: 6a3053d9

* commit '6a3053d9':
  Stop profile services when Bluetooth enable times out

Change-Id: I303b4ecd10bd960564802a8978690a11443c0a33
parents 2111eebf 6a3053d9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -437,6 +437,7 @@ final class AdapterState extends StateMachine {
                case BREDR_START_TIMEOUT:
                    errorLog("Error enabling Bluetooth (start timeout)");
                    mPendingCommandState.setTurningOn(false);
                    adapterService.stopProfileServices();
                    transitionTo(mBleOnState);
                    notifyAdapterStateChange(BluetoothAdapter.STATE_BLE_ON);
                    break;
@@ -445,6 +446,8 @@ final class AdapterState extends StateMachine {
                    errorLog("Error enabling Bluetooth (enable timeout)");
                    mPendingCommandState.setBleTurningOn(false);
                    transitionTo(mOffState);
                    adapterService.stopProfileServices();
                    adapterService.stopGattProfileService();
                    notifyAdapterStateChange(BluetoothAdapter.STATE_OFF);
                    break;