diff options
Diffstat (limited to 'xpcom/threads/TaskController.cpp')
-rw-r--r-- | xpcom/threads/TaskController.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xpcom/threads/TaskController.cpp b/xpcom/threads/TaskController.cpp index 8e3aae185a..d8c2d5e176 100644 --- a/xpcom/threads/TaskController.cpp +++ b/xpcom/threads/TaskController.cpp @@ -927,7 +927,9 @@ bool TaskController::DoExecuteNextTaskOnlyMainThreadInternal( mMainThreadTasks.insert(std::move(mCurrentTasksMT.top())); MOZ_ASSERT(insertion.second); task->mIterator = insertion.first; - manager->WillRunTask(); + if (manager) { + manager->WillRunTask(); + } } else { task->mCompleted = true; #ifdef DEBUG |