From 6fffb09b2a64d302a0bf6ef2f58edb41285d2a87 Mon Sep 17 00:00:00 2001 From: Exzap <13877693+Exzap@users.noreply.github.com> Date: Thu, 12 Nov 2026 15:00:09 +0100 Subject: [PATCH] DSU: Fix inverted socket validity check --- src/util/Socket/Socket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/Socket/Socket.cpp b/src/util/Socket/Socket.cpp index 71b9397d..c594a5ad 100644 --- a/src/util/Socket/Socket.cpp +++ b/src/util/Socket/Socket.cpp @@ -77,7 +77,7 @@ static sockaddr_in MakeAddress(SocketIPv4 ip, uint16 port) UDPSocket::UDPSocket() { m_socket = static_cast(socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)); - if (IsValid()) + if (!IsValid()) Close(); SetSocketSettings(Native(m_socket)); }