mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +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: 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());
|
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