fix: stale renderer process on quit (#32971)

Co-authored-by: Micha Hanselmann <micha.hanselmann@gmail.com>
This commit is contained in:
trop[bot]
2022-02-21 10:53:39 +01:00
committed by GitHub
parent d07fe4480f
commit ca06034fdd

View File

@@ -455,7 +455,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() {