Skip to content

Commit

Permalink
LibCore: close socket on TCPServer dtor
Browse files Browse the repository at this point in the history
  • Loading branch information
tryfinally authored and awesomekling committed Aug 9, 2020
1 parent 0246e2a commit 9150f3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Libraries/LibCore/TCPServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ TCPServer::TCPServer(Object* parent)

TCPServer::~TCPServer()
{
::close(m_fd);
}

bool TCPServer::listen(const IPv4Address& address, u16 port)
Expand Down

0 comments on commit 9150f3c

Please sign in to comment.