[or-cvs] r15094: make the 'bootstrap problem' stuff quieter while i'm messing (tor/trunk/src/or)

arma at seul.org arma at seul.org
Mon Jun 9 22:15:09 UTC 2008


Author: arma
Date: 2008-06-09 18:15:08 -0400 (Mon, 09 Jun 2008)
New Revision: 15094

Modified:
   tor/trunk/src/or/control.c
Log:
make the 'bootstrap problem' stuff quieter while i'm messing with it


Modified: tor/trunk/src/or/control.c
===================================================================
--- tor/trunk/src/or/control.c	2008-06-09 20:52:59 UTC (rev 15093)
+++ tor/trunk/src/or/control.c	2008-06-09 22:15:08 UTC (rev 15094)
@@ -3963,9 +3963,12 @@
   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 */
 



More information about the tor-commits mailing list