mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 19:37:34 +00:00
LibCore: close socket on LocalServer dtor
This commit is contained in:
parent
9150f3c266
commit
d9470bdae7
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue