aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-05-09 12:18:04 -0400
committerNick Mathewson <nickm@torproject.org>2018-05-09 12:18:39 -0400
commitc0feb698a0ab8574019d23cbd3060eb0513489c4 (patch)
tree20eb84a168e535513bf2f6c3fcb5cdcafbd02891 /src/or/dirserv.c
parent50328533e3595b9cc2d3fc72f81f56572c9e732d (diff)
downloadtor-c0feb698a0ab8574019d23cbd3060eb0513489c4.tar.gz
tor-c0feb698a0ab8574019d23cbd3060eb0513489c4.zip
Comment-only fix: annotate we_are_hibernating() usage
Everywhere we use we_are_hibernating(), remind the reader what it means. (Also, add an XXXX to note a DisableNetwork usage to change later.)
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index bfcec6e105..c01234e0b9 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -955,7 +955,7 @@ dirserv_set_router_is_running(routerinfo_t *router, time_t now)
tor_assert(node);
if (router_is_me(router)) {
- /* We always know if we are down ourselves. */
+ /* We always know if we are shutting down or hibernating ourselves. */
answer = ! we_are_hibernating();
} else if (router->is_hibernating &&
(router->cache_info.published_on +