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

Skip to content
Commit f85e7786 authored by Atneya Nair's avatar Atneya Nair Committed by Mikhail Naganov
Browse files

Prevent modifying mAudioPolicies during iteration

Calling release on a policy from mAudioPolicies removes a key from the
map, causing a ConcurrentHashException.
Defer releases till after iteration completes.

Test: Compiles
Bug: 240314224

Change-Id: I83fa969204d8a9c6ac7bae40f5be57a92813f6be
(cherry picked from commit 6f837517)
Merged-In: I83fa969204d8a9c6ac7bae40f5be57a92813f6be
parent db3fb60b
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