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

Skip to content
Commit b10f7870 authored by Hemant Gupta's avatar Hemant Gupta
Browse files

SAP: Prevent waiting in main thread to prevent ANR

A case when BT on/off is running in loop and stop is called
from main thread, prevent blocking main thread during call
to stop and using shared resources, as mutex might be locked
until the thread is safely existed, so used force state change
to prevent ANR as during stopping of SapService, we dont; need
to check for existing state, and change the state unconditionally.

CRs-Fixed: 932243
Change-Id: I455e49864d104cebb51fc841dcadcd0a37e36be4
parent 8fe29ce2
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