mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
resend outstading packets again
This commit is contained in:
parent
a6c9ee446a
commit
f133a7f9fd
@ -408,11 +408,14 @@ namespace stream
|
||||
else
|
||||
break;
|
||||
}
|
||||
if (m_SentPackets.empty ())
|
||||
m_ResendTimer.cancel ();
|
||||
if (acknowledged)
|
||||
{
|
||||
bool isPreviousResend = m_NumResendAttempts > 0;
|
||||
m_NumResendAttempts = 0;
|
||||
if (m_SentPackets.empty ())
|
||||
m_ResendTimer.cancel ();
|
||||
else if (isPreviousResend) // resend outstanding
|
||||
HandleResendTimer (boost::system::error_code ()); // no error
|
||||
SendBuffer ();
|
||||
}
|
||||
if (m_Status == eStreamStatusClosed)
|
||||
|
Loading…
Reference in New Issue
Block a user