diff options
author | Roger Dingledine <arma@torproject.org> | 2008-06-09 22:15:08 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2008-06-09 22:15:08 +0000 |
commit | f4e12fa66db7d3b1d621aaf3396c080aac573a02 (patch) | |
tree | 46d03f07dea663f8d5bee41316b8ae9d1f29347d /src/or/control.c | |
parent | 55975452b4a36b2766bb2efa10694cfdf8db0a85 (diff) | |
download | tor-f4e12fa66db7d3b1d621aaf3396c080aac573a02.tar.gz tor-f4e12fa66db7d3b1d621aaf3396c080aac573a02.zip |
make the 'bootstrap problem' stuff quieter while i'm messing with it
svn:r15094
Diffstat (limited to 'src/or/control.c')
-rw-r--r-- | src/or/control.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/or/control.c b/src/or/control.c index b6c93fd130..89f681979a 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -3963,8 +3963,11 @@ control_event_bootstrap_problem(const char *warn, int reason) int status = bootstrap_percent; const char *tag, *summary; -// if (++bootstrap_problems != BOOTSTRAP_PROBLEM_THRESHOLD) -// return; /* no worries yet */ + if (bootstrap_percent == 100) + return; /* already bootstrapped; nothing to be done here. */ + + if (++bootstrap_problems != BOOTSTRAP_PROBLEM_THRESHOLD) + return; /* no worries yet */ while (bootstrap_status_to_string(status, &tag, &summary) < 0) status--; /* find a recognized status string based on current progress */ |