Ver código fonte

Avoid an instance of the bug warning in any_bridge_descriptors_known()

Part of 23524.
teor 6 anos atrás
pai
commit
6e87c0b23e
1 arquivos alterados com 1 adições e 1 exclusões
  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 {