summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-11-08 04:19:51 +0000
committerRoger Dingledine <arma@torproject.org>2007-11-08 04:19:51 +0000
commite12cf29960d4b291bcfca65c82d14240f4f7d5ee (patch)
tree1cf1a7e45ff4e989515a4b23dde893309a4f20c8 /src
parent997c1e5e0d2215f4b9bd8761cc4c184257b8252c (diff)
downloadtor-e12cf29960d4b291bcfca65c82d14240f4f7d5ee.tar.gz
tor-e12cf29960d4b291bcfca65c82d14240f4f7d5ee.zip
Don't stop fetching descriptors when FetchUselessDescriptors is
set, even if we stop asking for circuits. Bugfix on 0.1.2.x; reported by tup and ioerror. svn:r12430
Diffstat (limited to 'src')
-rw-r--r--src/or/routerlist.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 1e20d4b3af..23229fd414 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -3753,10 +3753,9 @@ update_consensus_router_descriptor_downloads(time_t now)
int n_delayed=0, n_have=0, n_would_reject=0, n_wouldnt_use=0,
n_inprogress=0, n_in_oldrouters=0;
- if (!dirserver) {
- if (rep_hist_circbuilding_dormant(now))
- goto done;
- }
+ if (!dirserver && !options->FetchUselessDescriptors &&
+ rep_hist_circbuilding_dormant(now))
+ goto done;
if (!consensus)
goto done;