fix: stale renderer process on quit (#32888)
This commit is contained in:
parent
36e730da93
commit
b1463d2da1
1 changed files with 2 additions and 1 deletions
|
@ -458,7 +458,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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue