Ladybird: Manually destroy the thread pool before exit

This makes the equivalent change to Ladybird's RequestServer as to
Serenity's in GH-26031.
This commit is contained in:
Jamie Mansfield authored and Nico Weber committed 2026-09-21 20:03:49 -04:00
1 parent a95cd5f220
commit e031fd5632
1 file changed
+4
+4
View File
@@ -63,6 +63,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
RequestServer::HttpProtocol::install();
RequestServer::HttpsProtocol::install();
ScopeGuard destroy_thread_pool_on_exit = [] {
RequestServer::ConnectionFromClient::destroy_thread_pool();
};
auto client = TRY(IPC::take_over_accepted_client_from_system_server<RequestServer::ConnectionFromClient>());
return event_loop.exec();