Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(573)

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorTaskRunner.cpp

Issue 2041753002: Worker: Protect a running debugger task from forcible worker termination (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweak if-condition Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/inspector/InspectorTaskRunner.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorTaskRunner.cpp b/third_party/WebKit/Source/core/inspector/InspectorTaskRunner.cpp
index ebe84ecd64f5393a93c907ce15215d9b661b1448..360ffde9f49281f88640608b22e9e4ed846fcd79 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorTaskRunner.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorTaskRunner.cpp
@@ -32,6 +32,8 @@ InspectorTaskRunner::~InspectorTaskRunner()
void InspectorTaskRunner::appendTask(std::unique_ptr<Task> task)
{
MutexLocker lock(m_mutex);
+ if (m_killed)
+ return;
m_queue.append(std::move(task));
m_condition.signal();
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698