summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
Diffstat (limited to 'src/or')
-rw-r--r--src/or/routerlist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 7097cb64dd..5aa934ae64 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -3821,6 +3821,10 @@ update_consensus_router_descriptor_downloads(time_t now)
}
continue; /* We have it already. */
}
+ if (digestmap_get(map, rs->descriptor_digest)) {
+ ++n_inprogress;
+ continue; /* We have an in-progress download. */
+ }
if (!download_status_is_ready(&rs->dl_status, now,
MAX_ROUTERDESC_DOWNLOAD_FAILURES)) {
++n_delayed; /* Not ready for retry. */
@@ -3835,10 +3839,6 @@ update_consensus_router_descriptor_downloads(time_t now)
++n_wouldnt_use;
continue; /* We would never use it ourself. */
}
- if (digestmap_get(map, rs->descriptor_digest)) {
- ++n_inprogress;
- continue; /* We have an in-progress download. */
- }
smartlist_add(downloadable, rs->descriptor_digest);
});