Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Ostroukhov <eostroukhov@google.com>2019-07-06 04:01:56 +0300
committerEugene Ostroukhov <eostroukhov@gmail.com>2019-07-15 22:32:08 +0300
commit7e543bb2e4711ab2c5a14d49e4465ff1fd75f232 (patch)
tree97681511abfd0ed216502e3542b9a53d79b27980 /src/inspector_agent.cc
parent440a344f68656c8056f9a1195a892fa425d761ec (diff)
inspector: do not change async call stack depth if the worker is done
Fixes: https://github.com/nodejs/node/issues/28528 PR-URL: https://github.com/nodejs/node/pull/28613 Reviewed-By: Aleksei Koziatinskii <ak239spb@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/inspector_agent.cc')
-rw-r--r--src/inspector_agent.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/inspector_agent.cc b/src/inspector_agent.cc
index df6a70d1484..d9cef5e5666 100644
--- a/src/inspector_agent.cc
+++ b/src/inspector_agent.cc
@@ -483,6 +483,11 @@ class NodeInspectorClient : public V8InspectorClient {
}
void maxAsyncCallStackDepthChanged(int depth) override {
+ if (waiting_for_sessions_disconnect_) {
+ // V8 isolate is mostly done and is only letting Inspector protocol
+ // clients gather data.
+ return;
+ }
if (auto agent = env_->inspector_agent()) {
if (depth == 0) {
agent->DisableAsyncHook();