mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
move unsent I2NP messages to new session if replaced
This commit is contained in:
@@ -383,10 +383,12 @@ namespace transport
|
||||
m_SendQueue.push_back (std::move (it));
|
||||
}
|
||||
}
|
||||
SendQueue ();
|
||||
|
||||
if (m_SendQueue.size () > 0) // windows is full
|
||||
Resend (i2p::util::GetMillisecondsSinceEpoch ());
|
||||
if (IsEstablished ())
|
||||
{
|
||||
SendQueue ();
|
||||
if (m_SendQueue.size () > 0) // windows is full
|
||||
Resend (i2p::util::GetMillisecondsSinceEpoch ());
|
||||
}
|
||||
SetSendQueueSize (m_SendQueue.size ());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user