Browse Source

exclude desctroyed session to introducer from RouterInfo

pull/97/head
orignal 10 years ago
parent
commit
4e213550ff
  1. 5
      SSU.cpp

5
SSU.cpp

@ -1086,6 +1086,11 @@ namespace ssu @@ -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…
Cancel
Save