diff --git a/Streaming.cpp b/Streaming.cpp index 6be2a98f..0908ff4a 100644 --- a/Streaming.cpp +++ b/Streaming.cpp @@ -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));