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:
parent
0246e2ae6c
commit
9150f3c266
1 changed files with 1 additions and 0 deletions
|
@ -53,6 +53,7 @@ TCPServer::TCPServer(Object* parent)
|
|||
|
||||
TCPServer::~TCPServer()
|
||||
{
|
||||
::close(m_fd);
|
||||
}
|
||||
|
||||
bool TCPServer::listen(const IPv4Address& address, u16 port)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue