diff --git a/Userland/Libraries/LibIPC/MultiServer.h b/Userland/Libraries/LibIPC/MultiServer.h index 1417e31a104..14d566cce81 100644 --- a/Userland/Libraries/LibIPC/MultiServer.h +++ b/Userland/Libraries/LibIPC/MultiServer.h @@ -23,6 +23,11 @@ public: return adopt_nonnull_own_or_enomem(new (nothrow) MultiServer(move(server))); } + static ErrorOr> try_create(NonnullRefPtr server) + { + return adopt_nonnull_own_or_enomem(new (nothrow) MultiServer(move(server))); + } + Function on_new_client; private: