From 2741e94a729c216e2c6a15442a81defc1b644f83 Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 10 Apr 2015 13:19:23 -0400 Subject: [PATCH] fixed infinite loop --- Streaming.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Streaming.cpp b/Streaming.cpp index c7b38f51..a8f5a919 100644 --- a/Streaming.cpp +++ b/Streaming.cpp @@ -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)); } }