From: Cheng Zhao Date: Thu, 10 Dec 2015 03:22:55 +0000 (+0800) Subject: Don't emit `will-quit` event when calling app.exit X-Git-Tag: v0.36.0~12 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=388a18b265de0a6af702ade4c870787c6eac6f25;p=electron.git Don't emit `will-quit` event when calling app.exit --- diff --git a/atom/browser/browser.cc b/atom/browser/browser.cc index c77f3597..7a2c22ea 100644 --- a/atom/browser/browser.cc +++ b/atom/browser/browser.cc @@ -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.