|
|
|
@ -104,6 +104,7 @@ namespace stream
@@ -104,6 +104,7 @@ namespace stream
|
|
|
|
|
|
|
|
|
|
void Stream::Terminate (bool deleteFromDestination) // shoudl be called from StreamingDestination::Stop only
|
|
|
|
|
{ |
|
|
|
|
m_Status = eStreamStatusTerminated; |
|
|
|
|
m_AckSendTimer.cancel (); |
|
|
|
|
m_ReceiveTimer.cancel (); |
|
|
|
|
m_ResendTimer.cancel (); |
|
|
|
@ -856,6 +857,8 @@ namespace stream
@@ -856,6 +857,8 @@ namespace stream
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void Stream::ScheduleResend () |
|
|
|
|
{ |
|
|
|
|
if (m_Status != eStreamStatusTerminated) |
|
|
|
|
{ |
|
|
|
|
m_ResendTimer.cancel (); |
|
|
|
|
// check for invalid value
|
|
|
|
@ -864,6 +867,7 @@ namespace stream
@@ -864,6 +867,7 @@ namespace stream
|
|
|
|
|
m_ResendTimer.async_wait (std::bind (&Stream::HandleResendTimer, |
|
|
|
|
shared_from_this (), std::placeholders::_1)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void Stream::HandleResendTimer (const boost::system::error_code& ecode) |
|
|
|
|
{ |
|
|
|
|