Commit 63cde972 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

don't try to build intro circs until you've fetched the directory


svn:r1541
parent e79a578f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -333,6 +333,7 @@ static void run_scheduled_events(time_t now) {
   *    our descriptor (if any). */
  if(time_to_fetch_directory < now) {
    /* it's time to fetch a new directory and/or post our descriptor */
    if(has_fetched_directory)
      rend_services_init(); /* make new intro points and re-upload if necessary */
    if(options.ORPort) {
      router_rebuild_descriptor();
+1 −1
Original line number Diff line number Diff line
@@ -704,7 +704,7 @@ int rend_services_init(void) {
                                         service->intro_exclude_nodes,
                                         exclude_routers);
      if (!router) {
        log_fn(LOG_WARN, "Can't establish more than %d introduction points",
        log_fn(LOG_WARN, "Could only establish %d introduction points",
               smartlist_len(service->intro_nodes));
        break;
      }