diff --git a/NTCPSession.cpp b/NTCPSession.cpp index 71cb21b3..144b947e 100644 --- a/NTCPSession.cpp +++ b/NTCPSession.cpp @@ -861,6 +861,7 @@ namespace transport if (it != m_NTCPSessions.end ()) { LogPrint (eLogWarning, "NTCP: session to ", ident.ToBase64 (), " already exists"); + session->Terminate(); return false; } m_NTCPSessions.insert (std::pair >(ident, session));