win: Delay quitting until next tick of message loop
This fixes app.quit() not working when it is called before the message loop starts to run.
This commit is contained in:
parent
9cdefb6069
commit
ab859067aa
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue