aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-07-22 07:19:11 +0000
committerRoger Dingledine <arma@torproject.org>2006-07-22 07:19:11 +0000
commit00aefaab6bc4ccb2ec737c7bf5eb0c4aec961c36 (patch)
tree81bcf9fc004af56dd50e059bd1760a25bbafc1b9 /src/or/main.c
parent2d6a4d283b5004f19c5c2c743ead51f6b2ad8440 (diff)
downloadtor-00aefaab6bc4ccb2ec737c7bf5eb0c4aec961c36.tar
tor-00aefaab6bc4ccb2ec737c7bf5eb0c4aec961c36.tar.gz
think harder about my logic
svn:r6806
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/main.c b/src/or/main.c
index cb0e74b37..b0795f526 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -569,7 +569,7 @@ directory_info_has_arrived(time_t now, int from_cache)
}
if (server_mode(options) && !we_are_hibernating() && !from_cache &&
- (has_completed_circuit || any_predicted_circuits(now)))
+ (has_completed_circuit || !any_predicted_circuits(now)))
consider_testing_reachability();
}
@@ -833,7 +833,7 @@ run_scheduled_events(time_t now)
/* also, check religiously for reachability, if it's within the first
* 20 minutes of our uptime. */
if (server_mode(options) &&
- (has_completed_circuit || any_predicted_circuits(now)) &&
+ (has_completed_circuit || !any_predicted_circuits(now)) &&
stats_n_seconds_working < TIMEOUT_UNTIL_UNREACHABILITY_COMPLAINT &&
!we_are_hibernating())
consider_testing_reachability();