Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 84f8dff

Browse files
Guilherme GonçalvesNephyrin
authored andcommitted
Bug 858141 - Don't assert on EVENT_AUDIO_ERROR while on STATE_ESTIMATING. r=smaug
1 parent ae788b6 commit 84f8dff

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

content/media/webspeech/recognition/SpeechRecognition.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,9 @@ SpeechRecognition::TransitionAndGetNextState(SpeechEvent* aEvent)
182182
case EVENT_RECOGNITIONSERVICE_FINAL_RESULT:
183183
case EVENT_RECOGNITIONSERVICE_ERROR:
184184
return DoNothing(aEvent);
185-
case EVENT_START:
186185
case EVENT_AUDIO_ERROR:
186+
return AbortError(aEvent);
187+
case EVENT_START:
187188
SR_LOG("STATE_ESTIMATING: Unhandled event %d", aEvent->mType);
188189
MOZ_NOT_REACHED("");
189190
}

0 commit comments

Comments
 (0)