1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-02-05 05:44:13 +00:00

teminate NTCP session on close completely

This commit is contained in:
orignal 2016-06-19 21:05:48 -04:00
parent 74d9f89c09
commit 9fe4f3adea

View File

@ -460,7 +460,7 @@ namespace transport
auto ntcpSession = m_NTCPServer ? m_NTCPServer->FindNTCPSession(router->GetIdentHash()) : nullptr; auto ntcpSession = m_NTCPServer ? m_NTCPServer->FindNTCPSession(router->GetIdentHash()) : nullptr;
if (ntcpSession) // try deleting ntcp session too if (ntcpSession) // try deleting ntcp session too
{ {
m_NTCPServer->RemoveNTCPSession(ntcpSession); ntcpSession->Terminate ();
LogPrint(eLogDebug, "Transports: NTCP session closed"); LogPrint(eLogDebug, "Transports: NTCP session closed");
} }
} }