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

Skip to content
Commit f36540ab authored by xutianguo's avatar xutianguo Committed by Andre Eisenbach
Browse files

Bluetooth: Thread-safe state machine's cleaning-up.



* The AdapterService object might be null when the state machine
  thread is still in working state, and it has been set to null
  in main thread, which is called in AdapterService's cleanup.
* AdapterState and BondStateMachine both have this defect.
* We should do part cleanup work in onQuitting method of StateMachine.

Bug: 65132355

Test: Make bluetooth turn on/off stress test, passed.

Change-Id: I86bb6176ef75ff95b293f0ed73ce35db62b7add1
Signed-off-by: default avatarxutianguo <xutianguo@xiaomi.com>
parent 41d92268
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