Browse Source

resend outstading packets again

pull/1514/head
orignal 5 years ago
parent
commit
f133a7f9fd
  1. 7
      libi2pd/Streaming.cpp

7
libi2pd/Streaming.cpp

@ -408,11 +408,14 @@ namespace stream @@ -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…
Cancel
Save