mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
exclude desctroyed session to introducer from RouterInfo
This commit is contained in:
parent
c0a70faab3
commit
4e213550ff
1 changed files with 5 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue