mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
cleanup introducers at startup
This commit is contained in:
parent
73ddc05a6c
commit
98fd1c7dbc
2 changed files with 6 additions and 2 deletions
4
SSU.cpp
4
SSU.cpp
|
@ -1170,10 +1170,10 @@ namespace ssu
|
|||
i2p::context.RemoveIntroducer (it);
|
||||
}
|
||||
|
||||
if (!numIntroducers)
|
||||
if (numIntroducers < SSU_MAX_NUM_INTRODUCERS)
|
||||
{
|
||||
// create new
|
||||
auto introducers = FindIntroducers (SSU_MAX_NUM_INTRODUCERS);
|
||||
auto introducers = FindIntroducers (SSU_MAX_NUM_INTRODUCERS - numIntroducers);
|
||||
if (introducers.size () > 0)
|
||||
{
|
||||
for (auto it1: introducers)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue