diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-01-03 20:51:24 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-01-03 20:51:24 +0000 |
commit | 0c4186d6eee21c9fb4929e0fed81853ef7319b9a (patch) | |
tree | bbefe9e6e25b0cfd6fdecd335c2376a7b6720fad /src/or/main.c | |
parent | 65c4fa26147998954d371ff50bea7106fb769dc9 (diff) | |
download | tor-0c4186d6eee21c9fb4929e0fed81853ef7319b9a.tar.gz tor-0c4186d6eee21c9fb4929e0fed81853ef7319b9a.zip |
Use correct logic to decide whether there are more directory servers to retry.
svn:r3257
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/main.c b/src/or/main.c index 37568ff3a3..b65bc3a535 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -605,7 +605,7 @@ static void run_scheduled_events(time_t now) { router_retry_connections(); } - directory_get_from_dirserver(DIR_PURPOSE_FETCH_DIR, NULL); + directory_get_from_dirserver(DIR_PURPOSE_FETCH_DIR, NULL, 1); time_to_fetch_directory = now + options->DirFetchPeriod; if (time_to_fetch_running_routers < now + options->StatusFetchPeriod) { time_to_fetch_running_routers = now + options->StatusFetchPeriod; @@ -617,7 +617,7 @@ static void run_scheduled_events(time_t now) { if (time_to_fetch_running_routers < now) { if (!authdir_mode(options)) { - directory_get_from_dirserver(DIR_PURPOSE_FETCH_RUNNING_LIST, NULL); + directory_get_from_dirserver(DIR_PURPOSE_FETCH_RUNNING_LIST, NULL, 1); } time_to_fetch_running_routers = now + options->StatusFetchPeriod; } @@ -779,7 +779,7 @@ static int do_hup(void) { } } /* Fetch a new directory. Even authdirservers do this. */ - directory_get_from_dirserver(DIR_PURPOSE_FETCH_DIR, NULL); + directory_get_from_dirserver(DIR_PURPOSE_FETCH_DIR, NULL, 1); if (server_mode(options)) { /* Restart cpuworker and dnsworker processes, so they get up-to-date * configuration options. */ |