Browse Source

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

pull/628/head
Jeff Becker 8 years ago
parent
commit
c6556b8442
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
  1. 3
      Streaming.cpp

3
Streaming.cpp

@ -663,6 +663,9 @@ namespace stream @@ -663,6 +663,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));

Loading…
Cancel
Save