mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 22:38:12 +00:00
LibCore: close socket on UDPServer dtor
This commit is contained in:
parent
5ae2f6e9ec
commit
0246e2ae6c
1 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,7 @@
|
|||
#include <LibCore/UDPServer.h>
|
||||
#include <LibCore/UDPSocket.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifndef SOCK_NONBLOCK
|
||||
# include <sys/ioctl.h>
|
||||
|
@ -53,6 +54,7 @@ UDPServer::UDPServer(Object* parent)
|
|||
|
||||
UDPServer::~UDPServer()
|
||||
{
|
||||
::close(m_fd);
|
||||
}
|
||||
|
||||
bool UDPServer::bind(const IPv4Address& address, u16 port)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue