diff options
author | Roger Dingledine <arma@torproject.org> | 2009-06-20 01:37:09 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-06-30 10:10:13 -0400 |
commit | 0cd16c4ad3aee87c385d62f9af7af64a7a99335c (patch) | |
tree | 750bbe4224b0f7dd5eaa89c2bdbebf577fb768a6 | |
parent | 7ce767181f42879d48737ba69c4ce99963d76d9f (diff) | |
download | tor-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.c | 4 |
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); } |