Kernel: Remove redundant socket_by_tuple removal in ~TCPSocket()

This commit is contained in:
Andreas Kling 2022-01-06 22:50:31 +01:00
parent 3bd7f5b89e
commit 626507943c
Notes: sideshowbarker 2024-07-17 21:31:32 +09:00

View file

@ -160,10 +160,6 @@ TCPSocket::TCPSocket(int protocol, NonnullOwnPtr<DoubleBuffer> receive_buffer, N
TCPSocket::~TCPSocket()
{
sockets_by_tuple().with_exclusive([&](auto& table) {
table.remove(tuple());
});
dequeue_for_retransmit();
dbgln_if(TCP_SOCKET_DEBUG, "~TCPSocket in state {}", to_string(state()));