Bug 1288033 - Decease the busyCount when Cancel() is called in WorkerRunnable, r=khuey

This commit is contained in:
Andrea Marchesini 2016-07-21 19:18:51 +02:00
parent 0a864a1988
commit 8d82d10366

View file

@ -260,6 +260,10 @@ WorkerRunnable::Run()
MOZ_ASSERT(IsCanceled(), "Subclass Cancel() didn't set IsCanceled()!"); MOZ_ASSERT(IsCanceled(), "Subclass Cancel() didn't set IsCanceled()!");
if (mBehavior == WorkerThreadModifyBusyCount) {
mWorkerPrivate->ModifyBusyCountFromWorker(false);
}
return NS_OK; return NS_OK;
} }