fix: ensure the inspector agent is shutdown before cleaning up the node env (#18028)
* fix: ensure the inspector agent is shutdown before cleaning up the node env * spec: add tests to ensure clean shutdown with connected inspector agent * Update node_debugger.cc
This commit is contained in:
parent
4e5a0946c7
commit
67b3fbca89
6 changed files with 55 additions and 2 deletions
|
@ -101,6 +101,7 @@ int NodeMain(int argc, char* argv[]) {
|
|||
}
|
||||
} while (more == true);
|
||||
|
||||
node_debugger.Stop();
|
||||
exit_code = node::EmitExit(env);
|
||||
node::RunAtExit(env);
|
||||
gin_env.platform()->DrainTasks(env->isolate());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue