From: Roger Dingledine Date: Sat, 20 Jun 2009 05:37:09 +0000 (-0400) Subject: the first piece of bug 969 fixing X-Git-Tag: tor-0.2.1.17-rc~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cd16c4ad3aee87c385d62f9af7af64a7a99335c;p=thirdparty%2Ftor.git 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. --- 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); }