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

Commit 2892419b authored by Felix Oghina's avatar Felix Oghina
Browse files

[speech] remove session limit

Test: cts
Bug: 297249772

Change-Id: If965385e999a14c87ca6c81cd01155b666fc6542
parent 02b3211e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -280,12 +280,12 @@ final class SpeechRecognitionManagerServiceImpl extends
                return null;
            }

            if (getSessionCountByUidLocked(callingUid) >= MAX_CONCURRENT_CONNECTIONS_BY_CLIENT) {
            if (getSessionCountByUidLocked(callingUid) == MAX_CONCURRENT_CONNECTIONS_BY_CLIENT) {
                Slog.w(TAG, "Number of sessions exceeded for uid: " + callingUid);
                Counter.logIncrementWithUid(
                        "speech_recognition.value_exceed_session_count",
                        callingUid);
                return null;
                // TODO(b/297249772): return null early to refuse the new connection
            }

            if (servicesForClient != null) {