From c0b92486f96a72cf6157d7d9350fdac61a773aa5 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Mon, 28 Mar 2016 11:09:32 -0700 Subject: [PATCH] fix incorrect next packet delta --- libraries/networking/src/udt/SendQueue.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/networking/src/udt/SendQueue.cpp b/libraries/networking/src/udt/SendQueue.cpp index 8933c984d5..d9cd329bdd 100644 --- a/libraries/networking/src/udt/SendQueue.cpp +++ b/libraries/networking/src/udt/SendQueue.cpp @@ -404,8 +404,8 @@ int SendQueue::maybeSendNewPacket() { _socket->writeBasePacket(*pairTailPacket, _destination); } - // we attempted to send two packets, return 2 - return 2; + // return the number of attempted packet sends + return shouldSendPairTail ? 2 : 1; } else { // we attempted to send a single packet, return 1 return 1;