mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-03 16:14:15 +00:00
fixed 1 packet off for out of sequence clean up
This commit is contained in:
parent
455390f121
commit
50419f200d
@ -2132,11 +2132,12 @@ namespace transport
|
|||||||
if (packet > m_ReceivePacketNum + 1)
|
if (packet > m_ReceivePacketNum + 1)
|
||||||
{
|
{
|
||||||
// like we've just received all packets before first
|
// like we've just received all packets before first
|
||||||
|
packet--;
|
||||||
m_ReceivePacketNum = packet - 1;
|
m_ReceivePacketNum = packet - 1;
|
||||||
UpdateReceivePacketNum (packet);
|
UpdateReceivePacketNum (packet);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
LogPrint (eLogError, "SSU2: Out of sequence packet ", packet, " is less than last received", m_ReceivePacketNum);
|
LogPrint (eLogError, "SSU2: Out of sequence packet ", packet, " is less than last received ", m_ReceivePacketNum);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto it = m_RelaySessions.begin (); it != m_RelaySessions.end ();)
|
for (auto it = m_RelaySessions.begin (); it != m_RelaySessions.end ();)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user