Skip to content

Commit

Permalink
fix: removing unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Frowen committed May 24, 2021
1 parent c37fe7d commit e8a93a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Mirage/Runtime/Sockets/Udp/UdpSocketFactory.cs
Expand Up @@ -131,7 +131,7 @@ public void Close()
/// <returns>true if data to read</returns>
public bool Poll()
{
return socket.Poll(0, SelectMode.SelectRead) && socket.Available > 0;
return socket.Poll(0, SelectMode.SelectRead);
}

public int Receive(byte[] buffer, out EndPoint endPoint)
Expand Down

0 comments on commit e8a93a4

Please sign in to comment.