]> khamidou — GitHub mirrors - electron.git/commitdiff
Don't emit `will-quit` event when calling app.exit
authorCheng Zhao <zcbenz@gmail.com>
Thu, 10 Dec 2015 03:22:55 +0000 (11:22 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 10 Dec 2015 03:22:55 +0000 (11:22 +0800)
atom/browser/browser.cc

index c77f359760c91cdca0866fe8738456a081aa06df..7a2c22ea9d232c6fb1ff6cc7ef5453ff120dafa4 100644 (file)
@@ -55,7 +55,7 @@ void Browser::Exit(int code) {
     // Must destroy windows before quitting, otherwise bad things can happen.
     atom::WindowList* window_list = atom::WindowList::GetInstance();
     if (window_list->size() == 0) {
-      NotifyAndShutdown();
+      Shutdown();
     } else {
       // Unlike Quit(), we do not ask to close window, but destroy the window
       // without asking.