mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
make more attempts to select not bad hop
This commit is contained in:
parent
cb8fbb0135
commit
b092e712ec
3 changed files with 19 additions and 6 deletions
|
@ -1257,7 +1257,7 @@ namespace data
|
|||
std::shared_ptr<const RouterInfo> NetDb::GetRandomRouter (Filter filter) const
|
||||
{
|
||||
if (m_RouterInfos.empty())
|
||||
return 0;
|
||||
return nullptr;
|
||||
uint16_t inds[3];
|
||||
RAND_bytes ((uint8_t *)inds, sizeof (inds));
|
||||
std::lock_guard<std::mutex> l(m_RouterInfosMutex);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue