mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Kernel: Move NNRP<Socket>s instead of copying in queue_connection_from
This commit is contained in:
parent
4a270c93ed
commit
2c025d6334
Notes:
sideshowbarker
2024-07-17 14:14:03 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/2c025d6334 Pull-request: https://github.com/SerenityOS/serenity/pull/13594
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…
Reference in a new issue