Skip to content

Commit

Permalink
fix: stale renderer process on quit (#32968)
Browse files Browse the repository at this point in the history
Co-authored-by: Micha Hanselmann <micha.hanselmann@gmail.com>
  • Loading branch information
trop[bot] and deermichel committed Feb 21, 2022
1 parent f47bc6b commit f57244d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shell/browser/electron_browser_main_parts.cc
Expand Up @@ -463,7 +463,8 @@ void ElectronBrowserMainParts::WillRunMainMessageLoop(
std::unique_ptr<base::RunLoop>& run_loop) {
js_env_->OnMessageLoopCreated();
exit_code_ = content::RESULT_CODE_NORMAL_EXIT;
Browser::Get()->SetMainMessageLoopQuitClosure(run_loop->QuitClosure());
Browser::Get()->SetMainMessageLoopQuitClosure(
run_loop->QuitWhenIdleClosure());
}

void ElectronBrowserMainParts::PostCreateMainMessageLoop() {
Expand Down

0 comments on commit f57244d

Please sign in to comment.