summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorMuhammad Zahalqa <m@tryfinally.com>2020-08-10 19:56:42 +0300
committerAndreas Kling <kling@serenityos.org>2020-08-10 20:03:18 +0200
commiteb77568d8cf99a17447618c55ac6c05ce62613a2 (patch)
tree7aa1be1292e1a48e9485f2b6dee91c08389e6830 /Libraries
parent00f658b9846b525e7b5b4b3f7ee2f33292b47ea4 (diff)
downloadserenity-eb77568d8cf99a17447618c55ac6c05ce62613a2.zip
LibCore: update m_bound on socket bind
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibCore/UDPServer.cpp3
1 files changed, 2 insertions, 1 deletions
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)