aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-11-20 12:03:46 -0500
committerNick Mathewson <nickm@torproject.org>2014-11-20 12:03:46 -0500
commit336c856e52d211aad6b40d29986264f3277a1327 (patch)
treef1b7930199642989c52161a1b5547e3417ede195 /src/or/config.c
parentf15cd22bb7c8f4f7009417e50a827c5bcc656807 (diff)
downloadtor-336c856e52d211aad6b40d29986264f3277a1327.tar.gz
tor-336c856e52d211aad6b40d29986264f3277a1327.zip
Make can_complete_circuits a static variable.
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 5b62c565b9..e08c09d54d 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -1072,7 +1072,7 @@ options_act_reversible(const or_options_t *old_options, char **msg)
"connections.");
connection_mark_all_noncontrol_connections();
/* We can't complete circuits until the network is re-enabled. */
- can_complete_circuit = 0;
+ note_that_we_maybe_cant_complete_circuits();
}
}
@@ -1670,7 +1670,7 @@ options_act(const or_options_t *old_options)
if (server_mode(options) && !server_mode(old_options)) {
ip_address_changed(0);
- if (can_complete_circuit || !any_predicted_circuits(time(NULL)))
+ if (have_completed_a_circuit() || !any_predicted_circuits(time(NULL)))
inform_testing_reachability();
}
cpuworkers_rotate();