Avoid an instance of the bug warning in any_bridge_descriptors_known()

Part of 23524.
This commit is contained in:
teor 2017-09-15 14:17:41 +10:00
parent 033691212a
commit 6e87c0b23e
No known key found for this signature in database
GPG Key ID: 740D9E39025272A2

View File

@ -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 {