mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
exclude desctroyed session to introducer from RouterInfo
This commit is contained in:
parent
c0a70faab3
commit
4e213550ff
5
SSU.cpp
5
SSU.cpp
@ -1086,6 +1086,11 @@ namespace ssu
|
||||
{
|
||||
session->Close ();
|
||||
m_Sessions.erase (session->GetRemoteEndpoint ());
|
||||
if (session->GetRelayTag () && i2p::context.GetRouterInfo ().UsesIntroducer ())
|
||||
{
|
||||
m_Introducers.remove (session->GetRemoteEndpoint ());
|
||||
i2p::context.RemoveIntroducer (session->GetRemoteEndpoint ());
|
||||
}
|
||||
delete session;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user