mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-22 00:59:08 +01:00
don't sedn explicit Ack if no NACKs only
This commit is contained in:
parent
4bc76995d1
commit
096927beed
1 changed files with 5 additions and 2 deletions
|
@ -394,9 +394,12 @@ namespace stream
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (packets.size () > 0)
|
if (packets.size () > 0)
|
||||||
|
{
|
||||||
|
if (m_SavedPackets.empty ()) // no NACKS
|
||||||
{
|
{
|
||||||
m_IsAckSendScheduled = false;
|
m_IsAckSendScheduled = false;
|
||||||
m_AckSendTimer.cancel ();
|
m_AckSendTimer.cancel ();
|
||||||
|
}
|
||||||
bool isEmpty = m_SentPackets.empty ();
|
bool isEmpty = m_SentPackets.empty ();
|
||||||
auto ts = i2p::util::GetMillisecondsSinceEpoch ();
|
auto ts = i2p::util::GetMillisecondsSinceEpoch ();
|
||||||
for (auto it: packets)
|
for (auto it: packets)
|
||||||
|
|
Loading…
Add table
Reference in a new issue