diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-04-27 09:55:05 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-05-01 10:54:54 -0400 |
commit | 234e317ef17de111a48c8bb6dba9e84d346afe25 (patch) | |
tree | 2f41990ba2270608ea281923fadb775551368836 /src/or/config.c | |
parent | 6868398b69f9651ad4d15892f19470500ef031d3 (diff) | |
download | tor-234e317ef17de111a48c8bb6dba9e84d346afe25.tar.gz tor-234e317ef17de111a48c8bb6dba9e84d346afe25.zip |
Ensure that voting is rescheduled whenever the schedule changes.
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c index 3719ac8847..1c2b4cf107 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -1,3 +1,4 @@ + /* Copyright (c) 2001 Matej Pfajfar. * Copyright (c) 2001-2004, Roger Dingledine. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. @@ -2329,8 +2330,10 @@ options_act(const or_options_t *old_options) /* We may need to reschedule some directory stuff if our status changed. */ if (old_options) { - if (authdir_mode_v3(options) && !authdir_mode_v3(old_options)) + if (authdir_mode_v3(options) && !authdir_mode_v3(old_options)) { dirvote_recalculate_timing(options, time(NULL)); + reschedule_dirvote(options); + } if (!bool_eq(directory_fetches_dir_info_early(options), directory_fetches_dir_info_early(old_options)) || !bool_eq(directory_fetches_dir_info_later(options), |