aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorteor <teor2345@gmail.com>2016-11-30 11:43:04 +1100
committerteor <teor2345@gmail.com>2016-11-30 11:43:04 +1100
commite061cf4d1d7e9d8533cde936f0904d4f7b877746 (patch)
treefa50fbc0ebed9bd8c6be30b2d96b36586b2ce466 /src/or
parent24e293c3c6228c0038360471e9bbd4b4b4daed05 (diff)
downloadtor-e061cf4d1d7e9d8533cde936f0904d4f7b877746.tar.gz
tor-e061cf4d1d7e9d8533cde936f0904d4f7b877746.zip
Remove an unneccessary FetchUselessDescriptors check in client_would_use_router
Diffstat (limited to 'src/or')
-rw-r--r--src/or/networkstatus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 10157c6170..bfb36413ce 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -2407,9 +2407,9 @@ int
client_would_use_router(const routerstatus_t *rs, time_t now,
const or_options_t *options)
{
- if (!rs->is_flagged_running && !options->FetchUselessDescriptors) {
+ if (!rs->is_flagged_running) {
/* If we had this router descriptor, we wouldn't even bother using it.
- * But, if we want to have a complete list, fetch it anyway. */
+ * (Fetching and storing depends on by we_want_to_fetch_flavor().) */
return 0;
}
if (rs->published_on + options->TestingEstimatedDescriptorPropagationTime