mirror of
https://github.com/electron/electron.git
synced 2026-01-26 07:48:08 -05:00
Only cleanup if we are the main process
This commit is contained in:
@@ -149,8 +149,11 @@ void Browser::NotifyAndShutdown() {
|
||||
}
|
||||
|
||||
if (process_notify_callback_set_) {
|
||||
process_singleton_->Cleanup();
|
||||
process_notify_callback_.Reset();
|
||||
|
||||
if (process_notify_result_ == ProcessSingleton::PROCESS_NONE) {
|
||||
process_singleton_->Cleanup();
|
||||
}
|
||||
}
|
||||
|
||||
Shutdown();
|
||||
|
||||
Reference in New Issue
Block a user