Merge "[BUG] AudioService: PlaybackActivityMonitor: fix exploding list"

This commit is contained in:
Eric Laurent
2021-12-22 16:43:58 +00:00
committed by Gerrit Code Review

View File

@@ -783,7 +783,7 @@ public final class PlaybackActivityMonitor
// the same time if we still have a public client.
while (clientIterator.hasNext()) {
PlayMonitorClient pmc = clientIterator.next();
if (pcdb.equals(pmc.mDispatcherCb)) {
if (pcdb.asBinder().equals(pmc.mDispatcherCb.asBinder())) {
pmc.release();
clientIterator.remove();
} else {