Merge branch 'upstream-openssl' into restricted_routes

This commit is contained in:
Jeff Becker 2016-06-21 08:15:26 -04:00
commit a7c955055c
No known key found for this signature in database
GPG key ID: AB950234D6EA286B
5 changed files with 11 additions and 9 deletions

View file

@ -470,12 +470,11 @@ namespace transport
{
m_SSUServer->DeleteSession (ssuSession);
LogPrint (eLogDebug, "Transports: SSU session closed");
}
// TODO: delete NTCP
}
auto ntcpSession = m_NTCPServer ? m_NTCPServer->FindNTCPSession(router->GetIdentHash()) : nullptr;
if (ntcpSession)
if (ntcpSession) // try deleting ntcp session too
{
m_NTCPServer->RemoveNTCPSession(ntcpSession);
ntcpSession->Terminate ();
LogPrint(eLogDebug, "Transports: NTCP session closed");
}
}