mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
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:
1 parent
a95cd5f220
commit
e031fd5632
1 file changed
+4
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user