From 388a18b265de0a6af702ade4c870787c6eac6f25 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 10 Dec 2015 11:22:55 +0800 Subject: [PATCH] Don't emit `will-quit` event when calling app.exit --- atom/browser/browser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.43.0