From 65a198ffa56503ccd593f46a035f4a2b8f28f8ff Mon Sep 17 00:00:00 2001 From: irungentoo Date: Mon, 1 Jul 2013 10:15:04 -0400 Subject: Fixed small bug. Updated TODO. --- core/Lossless_UDP.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core') diff --git a/core/Lossless_UDP.c b/core/Lossless_UDP.c index d40b2851..9af097d3 100644 --- a/core/Lossless_UDP.c +++ b/core/Lossless_UDP.c @@ -310,8 +310,7 @@ uint32_t missing_packets(int connection_id, uint32_t * requested) uint32_t number = 0; uint32_t i; uint32_t temp; - - if(recvqueue(connection_id) >= BUFFER_PACKET_NUM)//don't request packets if the buffer is full. + if(recvqueue(connection_id) >= (BUFFER_PACKET_NUM - 1))//don't request packets if the buffer is full. { return 0; } -- cgit v1.2.3