diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-09-22 01:52:57 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-09-22 01:52:57 -0400 |
commit | c9cb4f0a0e9eb3411dfdc446e4543d48b152f8f5 (patch) | |
tree | 1485273a5c7a691d43b7ab8cf4bc8d9ae9f55e31 /src/or/circuitbuild.c | |
parent | 31f22505a6ddc802c00ffbcb0563bc3ddcc7092a (diff) | |
download | tor-c9cb4f0a0e9eb3411dfdc446e4543d48b152f8f5.tar.gz tor-c9cb4f0a0e9eb3411dfdc446e4543d48b152f8f5.zip |
Rename has_completed_circuit to can_complete_circuit
Also redocument it. Related to #1362.
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r-- | src/or/circuitbuild.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 14b0fb9f1f..35d8087b6f 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -1918,9 +1918,9 @@ circuit_send_next_onion_skin(origin_circuit_t *circ) circuit_reset_failure_count(0); if (circ->build_state->onehop_tunnel) control_event_bootstrap(BOOTSTRAP_STATUS_REQUESTING_STATUS, 0); - if (!has_completed_circuit && !circ->build_state->onehop_tunnel) { + if (!can_complete_circuit && !circ->build_state->onehop_tunnel) { or_options_t *options = get_options(); - has_completed_circuit=1; + can_complete_circuit=1; /* FFFF Log a count of known routers here */ log_notice(LD_GENERAL, "Tor has successfully opened a circuit. " @@ -1987,7 +1987,7 @@ circuit_note_clock_jumped(int seconds_elapsed) seconds_elapsed >=0 ? "forward" : "backward"); control_event_general_status(LOG_WARN, "CLOCK_JUMPED TIME=%d", seconds_elapsed); - has_completed_circuit=0; /* so it'll log when it works again */ + can_complete_circuit=0; /* so it'll log when it works again */ control_event_client_status(severity, "CIRCUIT_NOT_ESTABLISHED REASON=%s", "CLOCK_JUMPED"); circuit_mark_all_unused_circs(); |