|
|
@ -408,11 +408,14 @@ namespace stream |
|
|
|
else |
|
|
|
else |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
if (m_SentPackets.empty ()) |
|
|
|
|
|
|
|
m_ResendTimer.cancel (); |
|
|
|
|
|
|
|
if (acknowledged) |
|
|
|
if (acknowledged) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
bool isPreviousResend = m_NumResendAttempts > 0; |
|
|
|
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 (); |
|
|
|
SendBuffer (); |
|
|
|
} |
|
|
|
} |
|
|
|
if (m_Status == eStreamStatusClosed) |
|
|
|
if (m_Status == eStreamStatusClosed) |
|
|
|