mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
don't sedn explicit Ack if no NACKs only
This commit is contained in:
@@ -395,8 +395,11 @@ namespace stream
|
|||||||
}
|
}
|
||||||
if (packets.size () > 0)
|
if (packets.size () > 0)
|
||||||
{
|
{
|
||||||
m_IsAckSendScheduled = false;
|
if (m_SavedPackets.empty ()) // no NACKS
|
||||||
m_AckSendTimer.cancel ();
|
{
|
||||||
|
m_IsAckSendScheduled = false;
|
||||||
|
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user