diff options
Diffstat (limited to 'Userland/Services/LaunchServer/main.cpp')
-rw-r--r-- | Userland/Services/LaunchServer/main.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Userland/Services/LaunchServer/main.cpp b/Userland/Services/LaunchServer/main.cpp index 1998ea243d..7d25a4ee3e 100644 --- a/Userland/Services/LaunchServer/main.cpp +++ b/Userland/Services/LaunchServer/main.cpp @@ -29,15 +29,10 @@ int main([[maybe_unused]] int argc, [[maybe_unused]] char** argv) bool ok = server->take_over_from_system_server(); VERIFY(ok); - server->on_ready_to_accept = [&] { - auto client_socket = server->accept(); - if (!client_socket) { - dbgln("LaunchServer: accept failed."); - return; - } + server->on_accept = [&](auto client_socket) { static int s_next_client_id = 0; int client_id = ++s_next_client_id; - IPC::new_client_connection<LaunchServer::ClientConnection>(client_socket.release_nonnull(), client_id); + IPC::new_client_connection<LaunchServer::ClientConnection>(move(client_socket), client_id); }; return event_loop.exec(); |