1
Fork 0
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:
Conrad Pankoff 2019-08-09 12:41:06 +10:00 committed by Andreas Kling
parent 54ceabd48d
commit a53437aa06
2 changed files with 4 additions and 4 deletions

View file

@ -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)