Skip to content

Commit

Permalink
Update NetConnectionUDP.cpp
Browse files Browse the repository at this point in the history
Fix differences on linux with the select function :(
  • Loading branch information
TLeonardUK committed Mar 18, 2024
1 parent 3c256d9 commit aee02dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Shared/Core/Network/NetConnectionUDP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit aee02dd

Please sign in to comment.