LibCore: close socket on UDPServer dtor

This commit is contained in:
Muhammad Zahalqa 2020-08-08 14:57:03 +03:00 committed by Andreas Kling
parent 5ae2f6e9ec
commit 0246e2ae6c
Notes: sideshowbarker 2024-07-19 04:08:29 +09:00

View file

@ -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)