mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
don't send expired I2NP messages
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user