mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-11-17 21:26:04 +00:00
check if end of list
This commit is contained in:
parent
43f74d4d5a
commit
4c91ae0085
@ -887,7 +887,7 @@ namespace transport
|
||||
if (it == m_SentPackets.end ()) return; // not found
|
||||
auto it1 = it;
|
||||
while (it1 != m_SentPackets.end () && it1->first <= lastPacketNum) it1++;
|
||||
it1--;
|
||||
if (it1 != m_SentPackets.end ()) it1--;
|
||||
m_SentPackets.erase (it, it1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user