diff options
author | George Kadianakis <desnacked@riseup.net> | 2014-03-08 13:13:12 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-03-10 14:07:56 -0400 |
commit | 6606e676eeafd8ff848dfb247e2b675eed190698 (patch) | |
tree | f88b50015a34bc55d4ed48c787675f564f349a7f /src/or/routerlist.c | |
parent | 0b7a66fac76445087651a1dd2d171bf043c9f345 (diff) | |
download | tor-6606e676eeafd8ff848dfb247e2b675eed190698.tar.gz tor-6606e676eeafd8ff848dfb247e2b675eed190698.zip |
Don't do directory fetches before all PTs have been configured.
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index d636a1e25c..8e910418f9 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -669,7 +669,7 @@ authority_certs_fetch_missing(networkstatus_t *status, time_t now) char id_digest_str[2*DIGEST_LEN+1]; char sk_digest_str[2*DIGEST_LEN+1]; - if (should_delay_dir_fetches(get_options())) + if (should_delay_dir_fetches(get_options(), NULL)) return; pending_cert = fp_pair_map_new(); @@ -4593,7 +4593,7 @@ void update_router_descriptor_downloads(time_t now) { const or_options_t *options = get_options(); - if (should_delay_dir_fetches(options)) + if (should_delay_dir_fetches(options, NULL)) return; if (!we_fetch_router_descriptors(options)) return; @@ -4614,7 +4614,7 @@ update_extrainfo_downloads(time_t now) int n_no_ei = 0, n_pending = 0, n_have = 0, n_delay = 0; if (! options->DownloadExtraInfo) return; - if (should_delay_dir_fetches(options)) + if (should_delay_dir_fetches(options, NULL)) return; if (!router_have_minimum_dir_info()) return; |