Skip to content

Commit aee02dd

Browse files
committed
Update NetConnectionUDP.cpp
Fix differences on linux with the select function :(
1 parent 3c256d9 commit aee02dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Shared/Core/Network/NetConnectionUDP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ void NetConnectionUDP::RecieveThreadEntry()
393393

394394
// Wait until a message is available, or wakeup after a timeout to check shutdown state
395395
// (this is kinda garbage, we should look at a better way to handle this).
396-
if (select(1, &SocketSet, nullptr, nullptr, &Timeout) == 0)
396+
if (select(Socket + 1, &SocketSet, nullptr, nullptr, &Timeout) == 0)
397397
{
398398
continue;
399399
}

0 commit comments

Comments
 (0)