summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorteor <teor2345@gmail.com>2017-09-15 14:17:41 +1000
committerteor <teor2345@gmail.com>2017-09-15 14:17:41 +1000
commit6e87c0b23e622e95d8348650f7bdf2af75ab824e (patch)
treeb3848c2477ba317f08f88ceaba92e6b75d79c177 /src/or
parent033691212a49d3d32f8a684a493c8c11b8887eee (diff)
downloadtor-6e87c0b23e622e95d8348650f7bdf2af75ab824e.tar.gz
tor-6e87c0b23e622e95d8348650f7bdf2af75ab824e.zip
Avoid an instance of the bug warning in any_bridge_descriptors_known()
Part of 23524.
Diffstat (limited to 'src/or')
-rw-r--r--src/or/directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 01d9fc617c..630524db67 100644
--- a/src/or/directory.c
+++ b/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 {