Fixed "Zero-length data clogs the P2P packet queue"

This commit is contained in:
Garry Newman 2017-12-06 12:13:36 +00:00
parent d98f7fd1fe
commit 63a12ff7c6

View File

@ -170,7 +170,7 @@ private unsafe bool ReadP2PPacket( int channel )
{
uint DataAvailable = 0;
if ( !networking.IsP2PPacketAvailable( out DataAvailable, channel ) || DataAvailable == 0 )
if ( !networking.IsP2PPacketAvailable( out DataAvailable, channel ) )
return false;
if ( ReceiveBuffer.Length < DataAvailable )