Keep RUDP socket receive polling nonblocking
This commit is contained in:
parent
f909c77c89
commit
c6f1435242
1 changed files with 5 additions and 0 deletions
|
|
@ -1800,6 +1800,11 @@ namespace GameCult.Networking
|
|||
int received;
|
||||
try
|
||||
{
|
||||
if (!_socket.Poll(0, SelectMode.SelectRead))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
received = _socket.ReceiveFrom(buffer, ref remote);
|
||||
}
|
||||
catch (SocketException error) when (
|
||||
|
|
|
|||
Loading…
Reference in a new issue