diff options
Diffstat (limited to 'Userland/Services/EchoServer/Client.h')
-rw-r--r-- | Userland/Services/EchoServer/Client.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/EchoServer/Client.h b/Userland/Services/EchoServer/Client.h index 9793d5d436..d9c3076881 100644 --- a/Userland/Services/EchoServer/Client.h +++ b/Userland/Services/EchoServer/Client.h @@ -12,7 +12,7 @@ class Client : public RefCounted<Client> { public: static NonnullRefPtr<Client> create(int id, RefPtr<Core::TCPSocket> socket) { - return adopt(*new Client(id, move(socket))); + return adopt_ref(*new Client(id, move(socket))); } Function<void()> on_exit; |