mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-20 14:44:43 +00:00
Kernel: Let pending socket queue keep socket objects alive until accept()
This commit is contained in:
committed by
Andreas Kling
parent
54ceabd48d
commit
a53437aa06
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user