diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-04-09 22:26:25 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-04-09 23:46:02 +0200 |
commit | 2c025d633439a3f4f1e421b175d9f90c1b164ca0 (patch) | |
tree | ca6ac8e6da2b1664ec430b9ac6b3b43e90755fff /Kernel/Net | |
parent | 4a270c93ed8049080ae6893dc5fa7f229de3bdeb (diff) | |
download | serenity-2c025d633439a3f4f1e421b175d9f90c1b164ca0.zip |
Kernel: Move NNRP<Socket>s instead of copying in queue_connection_from
Diffstat (limited to 'Kernel/Net')
-rw-r--r-- | Kernel/Net/Socket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Net/Socket.cpp b/Kernel/Net/Socket.cpp index 3673969a5e..6f89a610a7 100644 --- a/Kernel/Net/Socket.cpp +++ b/Kernel/Net/Socket.cpp @@ -69,7 +69,7 @@ ErrorOr<void> Socket::queue_connection_from(NonnullRefPtr<Socket> peer) MutexLocker locker(mutex()); if (m_pending.size() >= m_backlog) return set_so_error(ECONNREFUSED); - SOCKET_TRY(m_pending.try_append(peer)); + SOCKET_TRY(m_pending.try_append(move(peer))); evaluate_block_conditions(); return {}; } |