Browse Source

teminate NTCP session on close completely

pull/533/head
orignal 9 years ago
parent
commit
9fe4f3adea
  1. 2
      Transports.cpp

2
Transports.cpp

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

Loading…
Cancel
Save