mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 20:45:14 +00:00
LibCore: close socket on TCPServer dtor
This commit is contained in:
parent
0246e2ae6c
commit
9150f3c266
Notes:
sideshowbarker
2024-07-19 04:08:25 +09:00
Author: https://github.com/tryfinally Commit: https://github.com/SerenityOS/serenity/commit/9150f3c266b Pull-request: https://github.com/SerenityOS/serenity/pull/3045 Reviewed-by: https://github.com/elcuco
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
Reference in a new issue