From eb77568d8cf99a17447618c55ac6c05ce62613a2 Mon Sep 17 00:00:00 2001 From: Muhammad Zahalqa Date: Mon, 10 Aug 2020 19:56:42 +0300 Subject: [PATCH] LibCore: update m_bound on socket bind --- Libraries/LibCore/UDPServer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Libraries/LibCore/UDPServer.cpp b/Libraries/LibCore/UDPServer.cpp index 6683b956f2..6f8e23258c 100644 --- a/Libraries/LibCore/UDPServer.cpp +++ b/Libraries/LibCore/UDPServer.cpp @@ -68,7 +68,8 @@ bool UDPServer::bind(const IPv4Address& address, u16 port) rc = ::bind(m_fd, (const sockaddr*)&in, sizeof(in)); ASSERT(rc == 0); - + m_bound = true; + m_notifier = Notifier::construct(m_fd, Notifier::Event::Read, this); m_notifier->on_ready_to_read = [this] { if (on_ready_to_receive)