mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:38:11 +00:00
Kernel: Let pending socket queue keep socket objects alive until accept()
This commit is contained in:
parent
54ceabd48d
commit
a53437aa06
2 changed files with 4 additions and 4 deletions
|
@ -52,7 +52,7 @@ RefPtr<Socket> Socket::accept()
|
|||
return client;
|
||||
}
|
||||
|
||||
KResult Socket::queue_connection_from(Socket& peer)
|
||||
KResult Socket::queue_connection_from(NonnullRefPtr<Socket> peer)
|
||||
{
|
||||
LOCKER(m_lock);
|
||||
if (m_pending.size() >= m_backlog)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue