From 9fa6b1ebe16058e742808c64c9a240ed22a64958 Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 14 Dec 2015 22:36:23 -0500 Subject: [PATCH] keep pending incoming streams if acceptor is not set --- Streaming.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Streaming.cpp b/Streaming.cpp index deed2adb..99223512 100644 --- a/Streaming.cpp +++ b/Streaming.cpp @@ -908,12 +908,9 @@ namespace stream } void StreamingDestination::ResetAcceptor () - { - m_Owner->GetService ().post([this](void) - { - if (m_Acceptor) m_Acceptor (nullptr); - m_Acceptor = nullptr; - }); + { + if (m_Acceptor) m_Acceptor (nullptr); + m_Acceptor = nullptr; } void StreamingDestination::HandlePendingIncomingTimer (const boost::system::error_code& ecode)