aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-04-09 19:30:38 +0000
committerRoger Dingledine <arma@torproject.org>2004-04-09 19:30:38 +0000
commitc5bef32d951906201e4c97073af222b8cb10c49e (patch)
tree3672a039185de6fa61b89c6229a29baf6ae653c1 /src/or/directory.c
parentc256f2c3a14571cb22f54adc63f531936c83661f (diff)
downloadtor-c5bef32d951906201e4c97073af222b8cb10c49e.tar
tor-c5bef32d951906201e4c97073af222b8cb10c49e.tar.gz
call directory_has_arrived has arrived every time we get
a new directory, not just the first time svn:r1581
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 8bf945ab1..e1e3c5a24 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -11,7 +11,6 @@ static int directory_handle_command(connection_t *conn);
/********* START VARIABLES **********/
extern or_options_t options; /* command-line and config-file options */
-extern int has_fetched_directory;
char rend_publish_string[] = "/rendezvous/publish";
char rend_fetch_url[] = "/rendezvous/";
@@ -243,13 +242,7 @@ int connection_dir_process_inbuf(connection_t *conn) {
} else {
log_fn(LOG_INFO,"updated routers.");
}
- if(options.ORPort) { /* connect to them all */
- router_retry_connections();
- }
- if (has_fetched_directory==0) {
- has_fetched_directory=1;
- directory_has_arrived(); /* do things we've been waiting to do */
- }
+ directory_has_arrived(); /* do things we've been waiting to do */
}
if(conn->purpose == DIR_PURPOSE_UPLOAD_DIR) {