mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-13 04:46:38 +01:00
close duplicate ntcp sessions
This commit is contained in:
parent
070a21a9eb
commit
c8f5fb4d03
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue