diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-05-17 11:10:20 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-05-17 11:10:20 -0400 |
commit | 6382cd93cb99d1f5cff62bfe7759eca8a6948782 (patch) | |
tree | db86f11cd30f2fa8314fc60bfd464ebcc3940dca /src/or/rephist.c | |
parent | 49c83dd21a7fe0432ad78061f3b41f4a5919340d (diff) | |
parent | d6a2fec05ebcc39773a2f6666e1378410c64f047 (diff) | |
download | tor-6382cd93cb99d1f5cff62bfe7759eca8a6948782.tar.gz tor-6382cd93cb99d1f5cff62bfe7759eca8a6948782.zip |
Merge branch 'maint-0.2.8'
Diffstat (limited to 'src/or/rephist.c')
-rw-r--r-- | src/or/rephist.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c index b94ad29650..70d230d18c 100644 --- a/src/or/rephist.c +++ b/src/or/rephist.c @@ -1867,14 +1867,17 @@ any_predicted_circuits(time_t now) int rep_hist_circbuilding_dormant(time_t now) { + const or_options_t *options = get_options(); + if (any_predicted_circuits(now)) return 0; /* see if we'll still need to build testing circuits */ - if (server_mode(get_options()) && - (!check_whether_orport_reachable() || !circuit_enough_testing_circs())) + if (server_mode(options) && + (!check_whether_orport_reachable(options) || + !circuit_enough_testing_circs())) return 0; - if (!check_whether_dirport_reachable()) + if (!check_whether_dirport_reachable(options)) return 0; return 1; |