commit | f85e77863e2d3c5e5747116ce2a20c40a38fe02f | [log] [tgz] |
---|---|---|
author | Atneya Nair <atneya@google.com> | Tue Jul 26 15:24:16 2022 -0700 |
committer | Mikhail Naganov <mnaganov@google.com> | Mon Sep 12 16:54:29 2022 +0000 |
tree | 719cb16f4bbda750236be350cd20f11476d66166 | |
parent | db3fb60b2b7a3456323d2cd627d091a293e70afd [diff] |
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 6f837517a2a9106deac7bb076db1cf78f72e0438) Merged-In: I83fa969204d8a9c6ac7bae40f5be57a92813f6be