diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-06-02 00:47:51 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-06-02 00:47:51 -0400 |
commit | 723894f114ef091ba09e3ab7440d4339bbc21430 (patch) | |
tree | 6d446f739306222c641ea5cca1ea28acb61d866e /src/or | |
parent | be9058003da9b75abbf0403743e7631dc29ba27c (diff) | |
parent | ad8977e39461807dd04e34dc7fa3c12ccef0b62d (diff) | |
download | tor-723894f114ef091ba09e3ab7440d4339bbc21430.tar.gz tor-723894f114ef091ba09e3ab7440d4339bbc21430.zip |
Merge remote-tracking branch 'public/bug12170_024_v2'
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/nodelist.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/nodelist.c b/src/or/nodelist.c index 09232f9f99..8f870816d2 100644 --- a/src/or/nodelist.c +++ b/src/or/nodelist.c @@ -1249,10 +1249,12 @@ router_set_status(const char *digest, int up) if (!up && node_is_me(node) && !net_is_disabled()) log_warn(LD_NET, "We just marked ourself as down. Are your external " "addresses reachable?"); + + if (bool_neq(node->is_running, up)) + router_dir_info_changed(); + node->is_running = up; } - - router_dir_info_changed(); } /** True iff, the last time we checked whether we had enough directory info |