diff options
author | Eugene Ostroukhov <eostroukhov@google.com> | 2019-07-06 04:01:56 +0300 |
---|---|---|
committer | Eugene Ostroukhov <eostroukhov@gmail.com> | 2019-07-15 22:32:08 +0300 |
commit | 7e543bb2e4711ab2c5a14d49e4465ff1fd75f232 (patch) | |
tree | 97681511abfd0ed216502e3542b9a53d79b27980 /src/inspector_agent.cc | |
parent | 440a344f68656c8056f9a1195a892fa425d761ec (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.cc | 5 |
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(); |