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

Skip to content
Commit dff59dd2 authored by Kyunglyul Hyun's avatar Kyunglyul Hyun
Browse files

BAS: Handle disconnect right after connect

In the "connecting" state, if a disconnect request is received,
the state changed to "disconnecting" instead of "disconnected".
The "disconnecting" state always timed out because we're not
connected to the remote device yet.
This CL fixes this issue by changing the state to "disconnected"
directly.
A new test is added to confirm the behavior.

Bug: 264829420
Tag: #feature
Test: atest BatteryStateMachineTest
Change-Id: Id422e207249258642bafd28754245ac6c98f5a6e
parent 7f6d6d19
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment