mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:17:44 +00:00
LibCore: Make LocalSocket takeover mechanism return ErrorOr<T>
This commit is contained in:
parent
c37a02341b
commit
c1a3968c66
9 changed files with 26 additions and 33 deletions
|
@ -18,7 +18,7 @@ ErrorOr<int> serenity_main(Main::Arguments)
|
|||
auto app = GUI::Application::construct(0, nullptr);
|
||||
app->set_quit_when_last_window_deleted(false);
|
||||
|
||||
auto socket = Core::LocalSocket::take_over_accepted_socket_from_system_server();
|
||||
IPC::new_client_connection<FileSystemAccessServer::ClientConnection>(socket.release_nonnull(), 1);
|
||||
auto socket = TRY(Core::LocalSocket::take_over_accepted_socket_from_system_server());
|
||||
IPC::new_client_connection<FileSystemAccessServer::ClientConnection>(move(socket), 1);
|
||||
return app->exec();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue