mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
move unsent I2NP messages to new session if replaced
This commit is contained in:
parent
a1322d4667
commit
bc8adf1433
3 changed files with 27 additions and 7 deletions
|
@ -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 ());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue