mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
Kernel: Don't put closed/listener sockets into the closing_sockets list
This commit is contained in:
committed by
Andreas Kling
parent
d8f92bdf96
commit
866e577f1d
@@ -471,8 +471,10 @@ KResult TCPSocket::close()
|
||||
set_state(State::LastAck);
|
||||
}
|
||||
|
||||
Locker locker(closing_sockets().lock());
|
||||
closing_sockets().resource().set(tuple(), *this);
|
||||
if (state() != State::Closed && state() != State::Listen) {
|
||||
Locker locker(closing_sockets().lock());
|
||||
closing_sockets().resource().set(tuple(), *this);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user