LibCore: close socket on TCPServer dtor

This commit is contained in:
Muhammad Zahalqa 2020-08-08 15:26:10 +03:00 committed by Andreas Kling
parent 0246e2ae6c
commit 9150f3c266
Notes: sideshowbarker 2024-07-19 04:08:25 +09:00

View file

@ -53,6 +53,7 @@ TCPServer::TCPServer(Object* parent)
TCPServer::~TCPServer()
{
::close(m_fd);
}
bool TCPServer::listen(const IPv4Address& address, u16 port)