Merge "AudioService: RecordActivityMonitor: fix unbounded list growth"

This commit is contained in:
Treehugger Robot
2022-08-11 08:37:31 +00:00
committed by Gerrit Code Review

View File

@@ -337,7 +337,7 @@ public final class RecordingActivityMonitor implements AudioSystem.AudioRecordin
boolean hasPublicClients = false;
while (clientIterator.hasNext()) {
RecMonitorClient rmc = clientIterator.next();
if (rcdb.equals(rmc.mDispatcherCb)) {
if (rcdb.asBinder().equals(rmc.mDispatcherCb.asBinder())) {
rmc.release();
clientIterator.remove();
} else {