diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-12-12 19:27:14 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-12-12 19:27:14 -0500 |
commit | 9abef516f609a619b25e8f53a413a2e3df05bde8 (patch) | |
tree | 2b80767e1ad490e20e4e2de034145594173b3171 /src/or/directory.c | |
parent | 13455c0f1a191824d383339c9efcc3b31ecd8e6f (diff) | |
parent | bf89b089306067cffa4d2ca6b7fa7cd54790a961 (diff) | |
download | tor-9abef516f609a619b25e8f53a413a2e3df05bde8.tar.gz tor-9abef516f609a619b25e8f53a413a2e3df05bde8.zip |
Merge branch 'maint-0.3.2'
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index dcdcff396f..c55f81bc62 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -5345,12 +5345,13 @@ find_dl_schedule(const download_status_t *dls, const or_options_t *options) } } case DL_SCHED_BRIDGE: - /* A bridge client downloading bridge descriptors */ - if (options->UseBridges && any_bridge_descriptors_known()) { - /* A bridge client with one or more running bridges */ + if (options->UseBridges && num_bridges_usable(0) > 0) { + /* A bridge client that is sure that one or more of its bridges are + * running can afford to wait longer to update bridge descriptors. */ return options->TestingBridgeDownloadSchedule; } else { - /* A bridge client with no running bridges */ + /* A bridge client which might have no running bridges, must try to + * get bridge descriptors straight away. */ return options->TestingBridgeBootstrapDownloadSchedule; } default: |