From 3e81123d94d2430d42734e39431394e421d1b0f5 Mon Sep 17 00:00:00 2001 From: orignal Date: Wed, 23 Apr 2014 17:51:12 -0400 Subject: [PATCH] fixed creash --- Streaming.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Streaming.h b/Streaming.h index dd6e1378..5a0ed383 100644 --- a/Streaming.h +++ b/Streaming.h @@ -214,7 +214,7 @@ namespace stream } } m_ReceiveTimer.expires_from_now (boost::posix_time::seconds(timeout)); - m_ReceiveTimer.async_wait ([&buffer, handler, this](const boost::system::error_code& ecode) + m_ReceiveTimer.async_wait ([=](const boost::system::error_code& ecode) { this->HandleReceiveTimer (ecode, buffer, handler); }); }