Index: third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp b/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp |
index 5dce282cc4bfa53d316b71d1670785fe8e7325bc..b8fd3f1d089cc8fdeb2d8cbf13997329c68bff95 100644 |
--- a/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp |
+++ b/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp |
@@ -89,14 +89,18 @@ void ThreadDebugger::AsyncTaskCanceled(void* task) { |
} |
void ThreadDebugger::AllAsyncTasksCanceled() { |
+ current_async_tasks_ = 0; |
v8_inspector_->allAsyncTasksCanceled(); |
} |
void ThreadDebugger::AsyncTaskStarted(void* task) { |
+ ++current_async_tasks_; |
v8_inspector_->asyncTaskStarted(task); |
} |
void ThreadDebugger::AsyncTaskFinished(void* task) { |
+ if (current_async_tasks_ > 0) |
+ --current_async_tasks_; |
v8_inspector_->asyncTaskFinished(task); |
} |