mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-25 02:38:59 +00:00
LibWebView: Remove m_in_shutdown
in favor of event loop's exit request
This commit is contained in:
parent
695bbcb991
commit
9e4b6c1ded
Notes:
github-actions[bot]
2025-08-18 00:53:22 +00:00
Author: https://github.com/gmta
Commit: 9e4b6c1ded
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5891
Reviewed-by: https://github.com/trflynn89 ✅
2 changed files with 2 additions and 5 deletions
|
@ -517,9 +517,7 @@ ErrorOr<int> Application::execute()
|
|||
}
|
||||
}
|
||||
|
||||
int ret = m_event_loop->exec();
|
||||
m_in_shutdown = true;
|
||||
return ret;
|
||||
return m_event_loop->exec();
|
||||
}
|
||||
|
||||
NonnullOwnPtr<Core::EventLoop> Application::create_platform_event_loop()
|
||||
|
@ -546,7 +544,7 @@ Optional<Process&> Application::find_process(pid_t pid)
|
|||
|
||||
void Application::process_did_exit(Process&& process)
|
||||
{
|
||||
if (m_in_shutdown)
|
||||
if (m_event_loop->was_exit_requested())
|
||||
return;
|
||||
|
||||
dbgln_if(WEBVIEW_PROCESS_DEBUG, "Process {} died, type: {}", process.pid(), process_name_from_type(process.type()));
|
||||
|
|
|
@ -146,7 +146,6 @@ private:
|
|||
|
||||
OwnPtr<Core::EventLoop> m_event_loop;
|
||||
OwnPtr<ProcessManager> m_process_manager;
|
||||
bool m_in_shutdown { false };
|
||||
|
||||
#if defined(AK_OS_MACOS)
|
||||
OwnPtr<MachPortServer> m_mach_port_server;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue