mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +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: 9150f3c266
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
Add a link
Reference in a new issue