From: Paul Betts Date: Wed, 21 Oct 2015 19:29:21 +0000 (-0700) Subject: Only cleanup if we are the main process X-Git-Tag: v0.34.1~9^2~4 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=658a9872fb681c331f154cadc508380959e36df3;p=electron.git Only cleanup if we are the main process --- diff --git a/atom/browser/browser.cc b/atom/browser/browser.cc index 6bfeae3c..6d39cdcc 100644 --- a/atom/browser/browser.cc +++ b/atom/browser/browser.cc @@ -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();