mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-22 19:41:41 +00:00
exclude desctroyed session to introducer from RouterInfo
This commit is contained in:
1 parent
c0a70faab3
commit
4e213550ff
1 file changed
+5
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user