From aee02dd9e30a602b7a5182c911f4909d54ed40e2 Mon Sep 17 00:00:00 2001 From: Tim Leonard Date: Mon, 18 Mar 2024 18:43:35 +0000 Subject: [PATCH] Update NetConnectionUDP.cpp Fix differences on linux with the select function :( --- Source/Shared/Core/Network/NetConnectionUDP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Shared/Core/Network/NetConnectionUDP.cpp b/Source/Shared/Core/Network/NetConnectionUDP.cpp index f621c856..c0983ad1 100644 --- a/Source/Shared/Core/Network/NetConnectionUDP.cpp +++ b/Source/Shared/Core/Network/NetConnectionUDP.cpp @@ -393,7 +393,7 @@ void NetConnectionUDP::RecieveThreadEntry() // Wait until a message is available, or wakeup after a timeout to check shutdown state // (this is kinda garbage, we should look at a better way to handle this). - if (select(1, &SocketSet, nullptr, nullptr, &Timeout) == 0) + if (select(Socket + 1, &SocketSet, nullptr, nullptr, &Timeout) == 0) { continue; }