authdirs shouldn't complain about unreachability when they

fetch a descriptor from somebody else. this is not the right
time to increment the failure count.


svn:r6184
This commit is contained in:
Roger Dingledine 2006-03-18 05:37:15 +00:00
parent 581795f41d
commit 67b61fe475

View File

@ -1544,7 +1544,7 @@ router_add_to_routerlist(routerinfo_t *router, const char **msg,
router->num_unreachable_notifications = router->num_unreachable_notifications =
old_router->num_unreachable_notifications; old_router->num_unreachable_notifications;
} }
if (authdir && if (authdir && !from_cache && !from_fetch &&
dirserv_thinks_router_is_blatantly_unreachable(router, dirserv_thinks_router_is_blatantly_unreachable(router,
time(NULL))) { time(NULL))) {
if (router->num_unreachable_notifications >= 3) { if (router->num_unreachable_notifications >= 3) {