mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
don't send expired I2NP messages
This commit is contained in:
parent
5e19e361e7
commit
9f217f8a11
4 changed files with 18 additions and 5 deletions
|
@ -379,8 +379,9 @@ namespace transport
|
|||
while (!m_SendQueue.empty () && m_SentPackets.size () <= m_WindowSize)
|
||||
{
|
||||
auto msg = m_SendQueue.front ();
|
||||
if (!msg)
|
||||
if (!msg || msg->IsExpired (ts))
|
||||
{
|
||||
// drop null or expired message
|
||||
m_SendQueue.pop_front ();
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue