summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-10-23 15:44:13 +0000
committerRoger Dingledine <arma@torproject.org>2007-10-23 15:44:13 +0000
commitf43b9638e482b511deb09bf6579c5aa1315dc80c (patch)
tree50a0448f343a3c0eb496401816cb2334b0187ca6 /src
parent788a4c11bd4e5617bb34855779629756bd6f90c3 (diff)
downloadtor-f43b9638e482b511deb09bf6579c5aa1315dc80c.tar.gz
tor-f43b9638e482b511deb09bf6579c5aa1315dc80c.zip
Don't complain that "your server has not managed to confirm that its
ports are reachable" if we haven't been able to build any circuits yet. Bug found by spending four hours without a v3 consensus. svn:r12133
Diffstat (limited to 'src')
-rw-r--r--src/or/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c
index c3bb3c3f6f..3c0b4ae430 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -1153,6 +1153,7 @@ second_elapsed_callback(int fd, short event, void *args)
if (server_mode(options) &&
!we_are_hibernating() &&
seconds_elapsed > 0 &&
+ has_completed_circuit &&
stats_n_seconds_working / TIMEOUT_UNTIL_UNREACHABILITY_COMPLAINT !=
(stats_n_seconds_working+seconds_elapsed) /
TIMEOUT_UNTIL_UNREACHABILITY_COMPLAINT) {