From 9fe4f3adeae093cd88bd20337ac046d18c4c96d4 Mon Sep 17 00:00:00 2001 From: orignal Date: Sun, 19 Jun 2016 21:05:48 -0400 Subject: [PATCH] teminate NTCP session on close completely --- Transports.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Transports.cpp b/Transports.cpp index b6f27d7d..b15ec56f 100644 --- a/Transports.cpp +++ b/Transports.cpp @@ -460,7 +460,7 @@ namespace transport auto ntcpSession = m_NTCPServer ? m_NTCPServer->FindNTCPSession(router->GetIdentHash()) : nullptr; if (ntcpSession) // try deleting ntcp session too { - m_NTCPServer->RemoveNTCPSession(ntcpSession); + ntcpSession->Terminate (); LogPrint(eLogDebug, "Transports: NTCP session closed"); } }