From 63a12ff7c617ba7cda4658e426fd08518d4cc1d6 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Wed, 6 Dec 2017 12:13:36 +0000 Subject: [PATCH] Fixed "Zero-length data clogs the P2P packet queue" --- Facepunch.Steamworks/Interfaces/Networking.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Facepunch.Steamworks/Interfaces/Networking.cs b/Facepunch.Steamworks/Interfaces/Networking.cs index c5b3245..8d3b0c4 100644 --- a/Facepunch.Steamworks/Interfaces/Networking.cs +++ b/Facepunch.Steamworks/Interfaces/Networking.cs @@ -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 )