mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 06:05:46 +03:00
Fixed "Zero-length data clogs the P2P packet queue"
This commit is contained in:
parent
d98f7fd1fe
commit
63a12ff7c6
@ -170,7 +170,7 @@ private unsafe bool ReadP2PPacket( int channel )
|
|||||||
{
|
{
|
||||||
uint DataAvailable = 0;
|
uint DataAvailable = 0;
|
||||||
|
|
||||||
if ( !networking.IsP2PPacketAvailable( out DataAvailable, channel ) || DataAvailable == 0 )
|
if ( !networking.IsP2PPacketAvailable( out DataAvailable, channel ) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if ( ReceiveBuffer.Length < DataAvailable )
|
if ( ReceiveBuffer.Length < DataAvailable )
|
||||||
|
Loading…
Reference in New Issue
Block a user