diff options
author | Roger Dingledine <arma@torproject.org> | 2011-04-28 20:40:15 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2011-04-28 20:40:15 -0400 |
commit | df3cf881d1d217b6ff3757bf95f8c2784584fec8 (patch) | |
tree | 3e194385fe32794196a02a51bf3dfdd01d275372 /src/or/circuitbuild.c | |
parent | 710227a77f3d47fec78497b0fabce13b4e3ce728 (diff) | |
download | tor-df3cf881d1d217b6ff3757bf95f8c2784584fec8.tar.gz tor-df3cf881d1d217b6ff3757bf95f8c2784584fec8.zip |
stop putting wacky values into state->lastwritten
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r-- | src/or/circuitbuild.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index fe94264555..85765e3e6b 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -119,7 +119,7 @@ circuit_build_times_disabled(void) 0, 0, 1); int config_disabled = !get_options()->LearnCircuitBuildTimeout; int dirauth_disabled = get_options()->AuthoritativeDir; - int state_disabled = (get_or_state()->LastWritten == -1); + int state_disabled = did_last_state_file_write_fail() ? 1 : 0; if (consensus_disabled || config_disabled || dirauth_disabled || state_disabled) { |