From 570598f55624c50a9828d1e6be54ff66a6b8ab64 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Thu, 28 Jul 2016 15:33:03 -0400 Subject: [PATCH] abruptly close --- Streaming.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Streaming.cpp b/Streaming.cpp index a4cfb533..87d669ca 100644 --- a/Streaming.cpp +++ b/Streaming.cpp @@ -863,12 +863,11 @@ namespace stream { // drop LogPrint(eLogWarning, "Streaming: Dropping connection, too many inbound streams from ", ih.ToBase32()); - incomingStream->Close(); + incomingStream->Terminate(); + delete incomingStream; return; } - } else - LogPrint(eLogWarning, "Streaming: Inbound stream has no identity"); - + } // handle saved packets if any { auto it = m_SavedPackets.find (receiveStreamID);