Merge pull request #7492 from birarda/next-packet-delta

fix for incorrect next packet delta in udt::SendQueue
This commit is contained in:
Clément Brisset 2016-03-28 14:12:04 -07:00
commit b6ce7a7db8

View file

@ -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;