Browse Source

fixed infinite loop

pull/180/head
orignal 9 years ago
parent
commit
2741e94a72
  1. 3
      Streaming.cpp

3
Streaming.cpp

@ -63,8 +63,9 @@ namespace stream @@ -63,8 +63,9 @@ namespace stream
m_ResendTimer.cancel ();
if (m_SendHandler)
{
m_SendHandler (boost::asio::error::make_error_code (boost::asio::error::operation_aborted));
auto handler = m_SendHandler;
m_SendHandler = nullptr;
handler (boost::asio::error::make_error_code (boost::asio::error::operation_aborted));
}
}

Loading…
Cancel
Save