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

Commit d34134b2 authored by Felix Oghina's avatar Felix Oghina Committed by Android (Google) Code Review
Browse files

Merge "[speech] copy client list to prevent concurrency" into main

parents bc9258bb 409a2404
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -297,7 +297,8 @@ final class RemoteSpeechRecognitionService extends ServiceConnector.Impl<IRecogn
                    return;
                }

                for (ClientState clientState : mClients.values()) {

                for (ClientState clientState : mClients.values().toArray(new ClientState[0])) {
                    tryRespondWithError(
                            clientState.mDelegatingListener.mRemoteListener,
                            SpeechRecognizer.ERROR_SERVER_DISCONNECTED);