mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: reset node env earlier during shutdown (#23039)
This commit is contained in:
@@ -495,6 +495,7 @@ void ElectronBrowserMainParts::PostMainMessageLoopRun() {
|
||||
// Destroy node platform after all destructors_ are executed, as they may
|
||||
// invoke Node/V8 APIs inside them.
|
||||
node_debugger_->Stop();
|
||||
node_env_.reset();
|
||||
js_env_->OnMessageLoopDestroying();
|
||||
|
||||
fake_browser_process_->PostMainMessageLoopRun();
|
||||
|
||||
Reference in New Issue
Block a user