From 3ed1fee7ce6e6c8ba0e1f636e4e5f2820c702499 Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 22 Jan 2015 19:02:28 -0500 Subject: [PATCH] remove stream on close --- Streaming.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Streaming.cpp b/Streaming.cpp index 7c0e32f8..753faf42 100644 --- a/Streaming.cpp +++ b/Streaming.cpp @@ -417,9 +417,9 @@ namespace stream p->len = size; m_Service.post (std::bind (&Stream::SendPacket, shared_from_this (), p)); LogPrint ("FIN sent"); - m_ReceiveTimer.cancel (); - m_LocalDestination.DeleteStream (shared_from_this ()); } + m_ReceiveTimer.cancel (); + m_LocalDestination.DeleteStream (shared_from_this ()); } size_t Stream::ConcatenatePackets (uint8_t * buf, size_t len)