forked from mirrors/gecko-dev
Bug 1288033 - Decease the busyCount when Cancel() is called in WorkerRunnable, r=khuey
This commit is contained in:
parent
0a864a1988
commit
8d82d10366
1 changed files with 4 additions and 0 deletions
|
|
@ -260,6 +260,10 @@ WorkerRunnable::Run()
|
|||
|
||||
MOZ_ASSERT(IsCanceled(), "Subclass Cancel() didn't set IsCanceled()!");
|
||||
|
||||
if (mBehavior == WorkerThreadModifyBusyCount) {
|
||||
mWorkerPrivate->ModifyBusyCountFromWorker(false);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue