Browse Source

close duplicate ntcp sessions

pull/628/head
Jeff Becker 9 years ago
parent
commit
c8f5fb4d03
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
  1. 1
      NTCPSession.cpp

1
NTCPSession.cpp

@ -861,6 +861,7 @@ namespace transport @@ -861,6 +861,7 @@ namespace transport
if (it != m_NTCPSessions.end ())
{
LogPrint (eLogWarning, "NTCP: session to ", ident.ToBase64 (), " already exists");
session->Terminate();
return false;
}
m_NTCPSessions.insert (std::pair<i2p::data::IdentHash, std::shared_ptr<NTCPSession> >(ident, session));

Loading…
Cancel
Save