aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-02-29 01:31:33 +0000
committerRoger Dingledine <arma@torproject.org>2004-02-29 01:31:33 +0000
commit4716d4d8715f25ed2536f3c6fb35e5d3392669c4 (patch)
tree63d6554d99dbb5aac78d2ee75327f45a6bf70769 /src/or/routerlist.c
parentb4338ce704efbc1f9d2ade37e21dfed9a2465e66 (diff)
downloadtor-4716d4d8715f25ed2536f3c6fb35e5d3392669c4.tar
tor-4716d4d8715f25ed2536f3c6fb35e5d3392669c4.tar.gz
bugfix: only warn about an unrouter router after we've fetched a directory
svn:r1178
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 42d4f4480..19c0d70ef 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -95,6 +95,8 @@ router_release_token(directory_token_t *tok);
/****************************************************************************/
+extern int has_fetched_directory;
+
/* try to find a running dirserver. if there are no dirservers
* in our routerlist, reload the routerlist and try again. */
routerinfo_t *router_pick_directory_server(void) {
@@ -103,6 +105,7 @@ routerinfo_t *router_pick_directory_server(void) {
choice = router_pick_directory_server_impl();
if(!choice) {
log_fn(LOG_WARN,"No dirservers known. Reloading and trying again.");
+ has_fetched_directory=0; /* reset it */
if(options.RouterFile) {
if(router_set_routerlist_from_file(options.RouterFile) < 0)
return NULL;