瀏覽代碼

make the 'bootstrap problem' stuff quieter while i'm messing with it

svn:r15094
Roger Dingledine 17 年之前
父節點
當前提交
f4e12fa66d
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      src/or/control.c

+ 5 - 2
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 */