Keep RUDP socket receive polling nonblocking

This commit is contained in:
Meta Vens 2026-06-16 09:49:00 +01:00
commit c6f1435242

View file

@ -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 (