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 794abc552c
commit 6130cb0486

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