|
|
|
@ -181,6 +181,8 @@ namespace data
@@ -181,6 +181,8 @@ namespace data
|
|
|
|
|
{ |
|
|
|
|
auto& dest = it->second; |
|
|
|
|
bool done = false; |
|
|
|
|
if (!dest->IsExploratory ()) |
|
|
|
|
{ |
|
|
|
|
if (ts < dest->GetCreationTime () + MAX_REQUEST_TIME) // request becomes worthless
|
|
|
|
|
{ |
|
|
|
|
if (ts > dest->GetLastRequestTime () + MIN_REQUEST_TIME) // try next floodfill if no response after min interval
|
|
|
|
@ -188,6 +190,9 @@ namespace data
@@ -188,6 +190,9 @@ namespace data
|
|
|
|
|
} |
|
|
|
|
else // delete obsolete request
|
|
|
|
|
done = true; |
|
|
|
|
} |
|
|
|
|
else if (ts >= dest->GetCreationTime () + MAX_EXPLORATORY_REQUEST_TIME) |
|
|
|
|
done = true; |
|
|
|
|
|
|
|
|
|
if (done) |
|
|
|
|
it = m_RequestedDestinations.erase (it); |
|
|
|
|