mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 505718 - 'mochitest-plain timeout (hanging?) during shutdown on Windows'. r+sr=jst.
This commit is contained in:
parent
80119bbe6d
commit
120a432917
@ -558,7 +558,7 @@ DOMWorkerOperationCallback(JSContext* aCx)
|
||||
// above in which case we shouldn't wait here. We're guaranteed not to race
|
||||
// here because the pool reenters its monitor after canceling each worker
|
||||
// in order to notify its condition variable.
|
||||
if (!worker->IsCanceled()) {
|
||||
if (worker->IsSuspended() && !worker->IsCanceled()) {
|
||||
mon.Wait();
|
||||
}
|
||||
}
|
||||
|
@ -164,9 +164,9 @@ nsDOMWorkerPool::NoteDyingWorker(nsDOMWorker* aWorker)
|
||||
void
|
||||
nsDOMWorkerPool::GetWorkers(nsTArray<nsDOMWorker*>& aArray)
|
||||
{
|
||||
aArray.Clear();
|
||||
PR_ASSERT_CURRENT_THREAD_IN_MONITOR(mMonitor);
|
||||
NS_ASSERTION(!aArray.Length(), "Should be empty!");
|
||||
|
||||
nsAutoMonitor mon(mMonitor);
|
||||
#ifdef DEBUG
|
||||
nsDOMWorker** newWorkers =
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user