don't sedn explicit Ack if no NACKs only

This commit is contained in:
orignal committed 2016-06-24 21:54:58 -04:00
1 parent 4bc76995d1
commit 096927beed
1 file changed
+5 -2
+5 -2
View File
@@ -395,8 +395,11 @@ namespace stream
}
if (packets.size () > 0)
{
m_IsAckSendScheduled = false;
m_AckSendTimer.cancel ();
if (m_SavedPackets.empty ()) // no NACKS
{
m_IsAckSendScheduled = false;
m_AckSendTimer.cancel ();
}
bool isEmpty = m_SentPackets.empty ();
auto ts = i2p::util::GetMillisecondsSinceEpoch ();
for (auto it: packets)