Skip to content

Commit

Permalink
fixup! src: disconnect inspector before exiting out of fatal exception
Browse files Browse the repository at this point in the history
  • Loading branch information
joyeecheung committed Sep 19, 2019
1 parent 83fc7ad commit 35b3eb9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/node_errors.cc
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,9 @@ void TriggerUncaughtException(Isolate* isolate,

// Now we are certain that the exception is fatal.
ReportFatalException(env, error, message, EnhanceFatalException::kEnhance);
WaitForInspectorDisconnect(env);
#if HAVE_INSPECTOR
profiler::EndStartedProfilers(env);
#endif

// If the global uncaught exception handler sets process.exitCode,
// exit with that code. Otherwise, exit with 1.
Expand Down

0 comments on commit 35b3eb9

Please sign in to comment.