From 0ed9dc4e933a37159f3156ee00fcb7697c58ae7b Mon Sep 17 00:00:00 2001 From: orignal Date: Tue, 10 Feb 2015 17:36:39 -0500 Subject: [PATCH] complete session if presented --- Transports.cpp | 1 + Transports.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Transports.cpp b/Transports.cpp index 961b172b..70c6b758 100644 --- a/Transports.cpp +++ b/Transports.cpp @@ -291,6 +291,7 @@ namespace transport } } LogPrint (eLogError, "No NTCP and SSU addresses available"); + if (peer.session) peer.session->Done (); m_Peers.erase (ident); return false; } diff --git a/Transports.h b/Transports.h index 6dad320e..c9b882c5 100644 --- a/Transports.h +++ b/Transports.h @@ -60,7 +60,6 @@ namespace transport ~Peer () { - //if (session) session->Done (); for (auto it :delayedMessages) i2p::DeleteI2NPMessage (it); }