]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
make the 'bootstrap problem' stuff quieter while i'm messing with it
authorRoger Dingledine <arma@torproject.org>
Mon, 9 Jun 2008 22:15:08 +0000 (22:15 +0000)
committerRoger Dingledine <arma@torproject.org>
Mon, 9 Jun 2008 22:15:08 +0000 (22:15 +0000)
svn:r15094

src/or/control.c

index b6c93fd13073e0547171389680cc6073d5ec3f6b..89f681979ac5f494fa14342802444e6859093100 100644 (file)
@@ -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 */