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

Skip to content
Commit dfa3248e authored by jiabin's avatar jiabin
Browse files

Use cached invalid tracks id when checking invalid tracks.

When checking invalid tracks, audio flinger will need to call the
callback if it exists. This need to be done without the lock in case it
takes a long time. However, after unlocking, the list of tracks can
already be modified. This can cause unexpected crash. To resolve the
issue, make a copy of the invalid tracks id under lock and call the
callback outside of the lock.

Test: OboeTester test disconnect
Bug: 228582029
Change-Id: I6fe28fa097acb91f4081666bad8289eae1c62c6e
parent 8b930c0b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment