summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2009-06-20 01:37:09 -0400
committerNick Mathewson <nickm@torproject.org>2009-06-30 10:10:13 -0400
commit0cd16c4ad3aee87c385d62f9af7af64a7a99335c (patch)
tree750bbe4224b0f7dd5eaa89c2bdbebf577fb768a6
parent7ce767181f42879d48737ba69c4ce99963d76d9f (diff)
downloadtor-0cd16c4ad3aee87c385d62f9af7af64a7a99335c.tar.gz
tor-0cd16c4ad3aee87c385d62f9af7af64a7a99335c.zip
the first piece of bug 969 fixing
tell the rephist module that a given relay is down whenever we determine that it's down, not just when we thought it used to be up.
-rw-r--r--src/or/dirserv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 88afe9fccc..55c3302c6e 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -951,8 +951,8 @@ dirserv_set_router_is_running(routerinfo_t *router, time_t now)
answer = get_options()->AssumeReachable ||
now < router->last_reachable + REACHABLE_TIMEOUT;
- if (router->is_running && !answer) {
- /* it was running but now it's not. tell rephist. */
+ if (!answer) {
+ /* not considered reachable. tell rephist. */
rep_hist_note_router_unreachable(router->cache_info.identity_digest, now);
}