mirror of
https://github.com/electron/electron.git
synced 2026-01-11 00:18:02 -05:00
fix: call node::Stop on exit (#25430)
This commit is contained in:
@@ -284,7 +284,7 @@ int NodeMain(int argc, char* argv[]) {
|
||||
|
||||
node::ResetStdio();
|
||||
|
||||
env->set_can_call_into_js(false);
|
||||
node::Stop(env);
|
||||
env->stop_sub_worker_contexts();
|
||||
env->RunCleanup();
|
||||
|
||||
|
||||
@@ -551,6 +551,7 @@ void ElectronBrowserMainParts::PostMainMessageLoopRun() {
|
||||
node_debugger_->Stop();
|
||||
node_env_->env()->set_trace_sync_io(false);
|
||||
js_env_->OnMessageLoopDestroying();
|
||||
node::Stop(node_env_->env());
|
||||
node_env_.reset();
|
||||
|
||||
ElectronBrowserContext::browser_context_map().clear();
|
||||
|
||||
Reference in New Issue
Block a user