Don't emit will-quit event when calling app.exit

This commit is contained in:
Cheng Zhao 2015-12-10 11:22:55 +08:00
parent d2e63dfc64
commit 388a18b265

View 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.