connect to introducer if not any yet

This commit is contained in:
orignal 2015-02-26 21:05:35 -05:00
parent b95b49bd19
commit ccf689ffd5
3 changed files with 17 additions and 0 deletions

View file

@ -3,6 +3,7 @@
#include "Log.h"
#include "Timestamp.h"
#include "RouterContext.h"
#include "NetDb.h"
#include "SSU.h"
namespace i2p
@ -460,6 +461,12 @@ namespace transport
}
}
m_Introducers = newList;
if (m_Introducers.empty ())
{
auto introducer = i2p::data::netdb.GetRandomIntroducer ();
if (introducer)
GetSession (introducer);
}
ScheduleIntroducersUpdateTimer ();
}
}