1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 12:35:08 +00:00

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

View file

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