浏览代码

don't try to upload hidden service descriptors until we have
established a circuit.


svn:r5884

Roger Dingledine 19 年之前
父节点
当前提交
686508a04a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/or/main.c

+ 1 - 1
src/or/main.c

@@ -895,7 +895,7 @@ run_scheduled_events(time_t now)
   circuit_close_all_marked();
   circuit_close_all_marked();
 
 
   /** 7. And upload service descriptors if necessary. */
   /** 7. And upload service descriptors if necessary. */
-  if (have_dir_info && !we_are_hibernating())
+  if (has_completed_circuit && !we_are_hibernating())
     rend_consider_services_upload(now);
     rend_consider_services_upload(now);
 
 
   /** 8. and blow away any connections that need to die. have to do this now,
   /** 8. and blow away any connections that need to die. have to do this now,