complete session if presented

This commit is contained in:
orignal 2015-02-10 17:36:39 -05:00
parent 9eba7923a7
commit 0ed9dc4e93
2 changed files with 1 additions and 1 deletions

View File

@ -291,6 +291,7 @@ namespace transport
} }
} }
LogPrint (eLogError, "No NTCP and SSU addresses available"); LogPrint (eLogError, "No NTCP and SSU addresses available");
if (peer.session) peer.session->Done ();
m_Peers.erase (ident); m_Peers.erase (ident);
return false; return false;
} }

View File

@ -60,7 +60,6 @@ namespace transport
~Peer () ~Peer ()
{ {
//if (session) session->Done ();
for (auto it :delayedMessages) for (auto it :delayedMessages)
i2p::DeleteI2NPMessage (it); i2p::DeleteI2NPMessage (it);
} }