Browse Source

LibCore: close socket on TCPServer dtor

Muhammad Zahalqa 5 years ago
parent
commit
9150f3c266
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Libraries/LibCore/TCPServer.cpp

+ 1 - 0
Libraries/LibCore/TCPServer.cpp

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