1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-23 03:27:40 +00:00

LibCore: close socket on LocalServer dtor

This commit is contained in:
Muhammad Zahalqa 2020-08-08 15:54:22 +03:00 committed by Andreas Kling
parent 9150f3c266
commit d9470bdae7

View file

@ -45,6 +45,8 @@ LocalServer::LocalServer(Object* parent)
LocalServer::~LocalServer() LocalServer::~LocalServer()
{ {
if (m_fd >= 0)
::close(m_fd);
} }
bool LocalServer::take_over_from_system_server() bool LocalServer::take_over_from_system_server()