From 7e00bbe6c2f12ed56d69e089dad712b5d68b05eb Mon Sep 17 00:00:00 2001 From: Daniel Holbert Date: Thu, 6 Feb 2014 10:56:50 -0800 Subject: [PATCH] Bug 968634: Fix broken inequality comparison in SpeechRecognition.cpp. r=ggp --- content/media/webspeech/recognition/SpeechRecognition.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/media/webspeech/recognition/SpeechRecognition.cpp b/content/media/webspeech/recognition/SpeechRecognition.cpp index 7c3ffc1f2e5..f79279fc8a5 100644 --- a/content/media/webspeech/recognition/SpeechRecognition.cpp +++ b/content/media/webspeech/recognition/SpeechRecognition.cpp @@ -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; }