Bug 1271493 Dispatch fetch control runnable even in opt builds. r=mccr8 a=lizzard

This commit is contained in:
Ben Kelly 2016-05-12 16:41:12 -07:00
parent c60a0cf73f
commit 3ae10bfb24

View File

@ -395,8 +395,9 @@ WorkerFetchResolver::OnResponseEnd()
// This can fail if the worker thread is canceled or killed causing
// the PromiseWorkerProxy to give up its WorkerFeature immediately,
// allowing the worker thread to become Dead.
NS_WARN_IF_FALSE(cr->Dispatch(),
"Failed to dispatch WorkerFetchResponseEndControlRunnable");
if (!cr->Dispatch()) {
NS_WARNING("Failed to dispatch WorkerFetchResponseEndControlRunnable");
}
}
}