mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-23 05:47:17 +01:00
check if there is only one unacked packet
This commit is contained in:
parent
5aa2a8f60f
commit
5e25e30330
|
@ -1067,7 +1067,7 @@ namespace transport
|
||||||
if (it == m_SentPackets.end ()) return; // not found
|
if (it == m_SentPackets.end ()) return; // not found
|
||||||
auto it1 = it;
|
auto it1 = it;
|
||||||
while (it1 != m_SentPackets.end () && it1->first <= lastPacketNum) it1++;
|
while (it1 != m_SentPackets.end () && it1->first <= lastPacketNum) it1++;
|
||||||
if (it1 != m_SentPackets.end ()) it1--;
|
if (it1 != m_SentPackets.end () && it1 != m_SentPackets.begin ()) it1--;
|
||||||
m_SentPackets.erase (it, it1);
|
m_SentPackets.erase (it, it1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue