|
|
|
@ -168,8 +168,10 @@ namespace data
@@ -168,8 +168,10 @@ namespace data
|
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
LogPrint (eLogInfo, "NetDb: RouterInfo added: ", ident.ToBase32()); |
|
|
|
|
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); |
|
|
|
|
m_RouterInfos[r->GetIdentHash ()] = r; |
|
|
|
@ -180,6 +182,7 @@ namespace data
@@ -180,6 +182,7 @@ namespace data
|
|
|
|
|
m_Floodfills.push_back (r); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// take care about requested destination
|
|
|
|
|
m_Requests.RequestComplete (ident, r); |
|
|
|
|
} |
|
|
|
|