mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 03:48:13 +00: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());
|
MutexLocker locker(mutex());
|
||||||
if (m_pending.size() >= m_backlog)
|
if (m_pending.size() >= m_backlog)
|
||||||
return set_so_error(ECONNREFUSED);
|
return set_so_error(ECONNREFUSED);
|
||||||
SOCKET_TRY(m_pending.try_append(peer));
|
SOCKET_TRY(m_pending.try_append(move(peer)));
|
||||||
evaluate_block_conditions();
|
evaluate_block_conditions();
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue