make sure m_RTO > 0 in Streaming.cpp so it doesn't hang

This commit is contained in:
Jeff Becker 2016-08-29 10:41:15 -04:00
parent 26440d94f1
commit 37b80f0ce3
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -658,6 +658,9 @@ namespace stream
void Stream::ScheduleResend ()
{
m_ResendTimer.cancel ();
// check for invalid value
if (m_RTO <= 0)
m_RTO = 1;
m_ResendTimer.expires_from_now (boost::posix_time::milliseconds(m_RTO));
m_ResendTimer.async_wait (std::bind (&Stream::HandleResendTimer,
shared_from_this (), std::placeholders::_1));