Merge pull request #2607 from atom/fix-quit
win: Delay quitting until next tick of message loop
This commit is contained in:
Коммит
04d8f3218f
|
@ -45,7 +45,8 @@ void Browser::Shutdown() {
|
|||
FOR_EACH_OBSERVER(BrowserObserver, observers_, OnQuit());
|
||||
|
||||
is_quiting_ = true;
|
||||
base::MessageLoop::current()->Quit();
|
||||
base::MessageLoop::current()->PostTask(
|
||||
FROM_HERE, base::MessageLoop::QuitWhenIdleClosure());
|
||||
}
|
||||
|
||||
std::string Browser::GetVersion() const {
|
||||
|
|
Загрузка…
Ссылка в новой задаче