aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2011-04-28 20:40:15 -0400
committerRoger Dingledine <arma@torproject.org>2011-04-28 20:40:15 -0400
commitdf3cf881d1d217b6ff3757bf95f8c2784584fec8 (patch)
tree3e194385fe32794196a02a51bf3dfdd01d275372 /src/or/circuitbuild.c
parent710227a77f3d47fec78497b0fabce13b4e3ce728 (diff)
downloadtor-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.c2
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) {