exclude desctroyed session to introducer from RouterInfo

This commit is contained in:
orignal 2014-09-14 15:57:38 -04:00
parent c0a70faab3
commit 4e213550ff

View File

@ -1086,6 +1086,11 @@ namespace ssu
{ {
session->Close (); session->Close ();
m_Sessions.erase (session->GetRemoteEndpoint ()); m_Sessions.erase (session->GetRemoteEndpoint ());
if (session->GetRelayTag () && i2p::context.GetRouterInfo ().UsesIntroducer ())
{
m_Introducers.remove (session->GetRemoteEndpoint ());
i2p::context.RemoveIntroducer (session->GetRemoteEndpoint ());
}
delete session; delete session;
} }
} }