diff --git a/Kernel/Net/TCPSocket.cpp b/Kernel/Net/TCPSocket.cpp index cf4c6f71ff..52a915f4ae 100644 --- a/Kernel/Net/TCPSocket.cpp +++ b/Kernel/Net/TCPSocket.cpp @@ -160,10 +160,6 @@ TCPSocket::TCPSocket(int protocol, NonnullOwnPtr 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()));