]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
the first piece of bug 969 fixing
authorRoger Dingledine <arma@torproject.org>
Sat, 20 Jun 2009 05:37:09 +0000 (01:37 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 30 Jun 2009 14:10:13 +0000 (10:10 -0400)
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.

src/or/dirserv.c

index 88afe9fccc4e6dfb7eba06252bb23cc7c2741a3b..55c3302c6e7e5d99f0d9da3a9b78553b6367e850 100644 (file)
@@ -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);
   }