summaryrefslogtreecommitdiff
path: root/src/or/main.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/main.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/main.c')
-rw-r--r--src/or/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 8929931eb8..682ec29ab9 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -1253,7 +1253,8 @@ run_connection_housekeeping(int i, time_t now)
} else if (we_are_hibernating() &&
! have_any_circuits &&
!connection_get_outbuf_len(conn)) {
- /* We're hibernating, there's no circuits, and nothing to flush.*/
+ /* We're hibernating or shutting down, there's no circuits, and nothing to
+ * flush.*/
log_info(LD_OR,"Expiring non-used OR connection to fd %d (%s:%d) "
"[Hibernating or exiting].",
(int)conn->s,conn->address, conn->port);