diff options
author | Andreas Kling <kling@serenityos.org> | 2021-12-06 16:27:57 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-12-06 19:22:16 +0100 |
commit | 81047d8f9cb092fa3ef83c4e06f1dfd8f65173be (patch) | |
tree | 944ba53a9b84332c2b3e32b682ebe6505ac4db3f /Userland/Services/ConfigServer | |
parent | 229a45ab1471e5bdcf532189cdd6a45027ebbfd5 (diff) | |
download | serenity-81047d8f9cb092fa3ef83c4e06f1dfd8f65173be.zip |
LibCore: Make LocalServer::take_over_from_system_server() return ErrorOr
This allows us to use TRY() or MUST() when calling it.
Diffstat (limited to 'Userland/Services/ConfigServer')
-rw-r--r-- | Userland/Services/ConfigServer/main.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Userland/Services/ConfigServer/main.cpp b/Userland/Services/ConfigServer/main.cpp index 65bbab3ae1..cde261b8a7 100644 --- a/Userland/Services/ConfigServer/main.cpp +++ b/Userland/Services/ConfigServer/main.cpp @@ -17,10 +17,9 @@ ErrorOr<int> serenity_main(Main::Arguments) TRY(Core::System::unveil(nullptr, nullptr)); Core::EventLoop event_loop; - auto server = TRY(Core::LocalServer::try_create()); - bool ok = server->take_over_from_system_server(); - VERIFY(ok); + auto server = TRY(Core::LocalServer::try_create()); + TRY(server->take_over_from_system_server()); server->on_accept = [&](auto client_socket) { static int s_next_client_id = 0; int client_id = ++s_next_client_id; |