|
|
@ -168,8 +168,10 @@ namespace data |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
LogPrint (eLogInfo, "NetDb: RouterInfo added: ", ident.ToBase32()); |
|
|
|
|
|
|
|
r = std::make_shared<RouterInfo> (buf, len); |
|
|
|
r = std::make_shared<RouterInfo> (buf, len); |
|
|
|
|
|
|
|
if (!r->IsUnreachable ()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
LogPrint (eLogInfo, "NetDb: RouterInfo added: ", ident.ToBase32()); |
|
|
|
{ |
|
|
|
{ |
|
|
|
std::unique_lock<std::mutex> l(m_RouterInfosMutex); |
|
|
|
std::unique_lock<std::mutex> l(m_RouterInfosMutex); |
|
|
|
m_RouterInfos[r->GetIdentHash ()] = r; |
|
|
|
m_RouterInfos[r->GetIdentHash ()] = r; |
|
|
@ -180,6 +182,7 @@ namespace data |
|
|
|
m_Floodfills.push_back (r); |
|
|
|
m_Floodfills.push_back (r); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
// take care about requested destination
|
|
|
|
// take care about requested destination
|
|
|
|
m_Requests.RequestComplete (ident, r); |
|
|
|
m_Requests.RequestComplete (ident, r); |
|
|
|
} |
|
|
|
} |
|
|
|