Explorar el Código

Avoid an instance of the bug warning in any_bridge_descriptors_known()

Part of 23524.
teor hace 6 años
padre
commit
6e87c0b23e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/or/directory.c

+ 1 - 1
src/or/directory.c

@@ -5379,7 +5379,7 @@ find_dl_schedule(const download_status_t *dls, const or_options_t *options)
       }
     case DL_SCHED_BRIDGE:
       /* A bridge client downloading bridge descriptors */
-      if (any_bridge_descriptors_known()) {
+      if (options->UseBridges && any_bridge_descriptors_known()) {
         /* A bridge client with one or more running bridges */
         return options->TestingBridgeDownloadSchedule;
       } else {