Bug 968634: Fix broken inequality comparison in SpeechRecognition.cpp. r=ggp

This commit is contained in:
Daniel Holbert 2014-02-06 10:56:50 -08:00
parent 061e267b32
commit 7e00bbe6c2

View File

@ -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;
}