summaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-12-11 19:12:55 +0000
committerNick Mathewson <nickm@torproject.org>2008-12-11 19:12:55 +0000
commitf3b52e331e4640a75d8323f86e29e1a2c6a2dafe (patch)
tree6e54f23804d32ae468a4f30a14a9e51131b78490 /src/or/main.c
parent043b4fc59e635015dc7fc758d44ba298b8278f4a (diff)
downloadtor-f3b52e331e4640a75d8323f86e29e1a2c6a2dafe.tar.gz
tor-f3b52e331e4640a75d8323f86e29e1a2c6a2dafe.zip
Avoid multiple descriptor-fetch connections to authorities. Fixes bug 366.
svn:r17594
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c
index b41559bd80..a6411d5b0a 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -651,6 +651,9 @@ directory_info_has_arrived(time_t now, int from_cache)
update_router_descriptor_downloads(now);
return;
} else {
+ if (directory_fetches_from_authorities(options))
+ update_router_descriptor_downloads(now);
+
/* if we have enough dir info, then update our guard status with
* whatever we just learned. */
entry_guards_compute_status();