mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
Kernel: Move NNRP<Socket>s instead of copying in queue_connection_from
This commit is contained in:
parent
4a270c93ed
commit
2c025d6334
1 changed files with 1 additions and 1 deletions
|
@ -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 {};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue