Browse Source

check if there is only one unacked packet

pull/1756/head
orignal 3 years ago
parent
commit
5e25e30330
  1. 2
      libi2pd/SSU2.cpp

2
libi2pd/SSU2.cpp

@ -1067,7 +1067,7 @@ namespace transport @@ -1067,7 +1067,7 @@ namespace transport
if (it == m_SentPackets.end ()) return; // not found
auto it1 = it;
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);
}

Loading…
Cancel
Save