зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1288033 - Decease the busyCount when Cancel() is called in WorkerRunnable, r=khuey
This commit is contained in:
Родитель
0a5620132f
Коммит
f7d06c7a06
|
@ -260,6 +260,10 @@ WorkerRunnable::Run()
|
|||
|
||||
MOZ_ASSERT(IsCanceled(), "Subclass Cancel() didn't set IsCanceled()!");
|
||||
|
||||
if (mBehavior == WorkerThreadModifyBusyCount) {
|
||||
mWorkerPrivate->ModifyBusyCountFromWorker(WorkerPrivate::eDecreaseBusyCount);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче