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

Commit c21f27c0 authored by Andre Eisenbach's avatar Andre Eisenbach Committed by Gerrit Code Review
Browse files

Merge "Stop profile services when Bluetooth enable times out"

parents 65f3adbe 4e34b45b
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;