mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-12 09:01:16 +00:00
Bug 968634: Fix broken inequality comparison in SpeechRecognition.cpp. r=ggp
This commit is contained in:
parent
794abc552c
commit
6130cb0486
@ -696,7 +696,7 @@ SpeechRecognition::SetServiceURI(const nsAString& aArg, ErrorResult& aRv)
|
||||
void
|
||||
SpeechRecognition::Start(ErrorResult& aRv)
|
||||
{
|
||||
if (!mCurrentState == STATE_IDLE) {
|
||||
if (mCurrentState != STATE_IDLE) {
|
||||
aRv.Throw(NS_ERROR_DOM_INVALID_STATE_ERR);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user