Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tor
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jarl
tor
Commits
59da060f
Commit
59da060f
authored
9 years ago
by
Roger Dingledine
Browse files
Options
Downloads
Patches
Plain Diff
use the new function here too
parent
91c58013
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/or/networkstatus.c
+1
-14
1 addition, 14 deletions
src/or/networkstatus.c
with
1 addition
and
14 deletions
src/or/networkstatus.c
+
1
−
14
View file @
59da060f
...
...
@@ -865,21 +865,8 @@ update_consensus_networkstatus_downloads(time_t now)
&&
i
==
usable_consensus_flavor
())
{
/* Check if we're already downloading a usable consensus */
int
consens_conn_count
=
connection_dir_count_by_purpose_and_resource
(
DIR_PURPOSE_FETCH_CONSENSUS
,
resource
);
int
connect_consens_conn_count
=
connection_dir_count_by_purpose_resource_and_state
(
DIR_PURPOSE_FETCH_CONSENSUS
,
resource
,
DIR_CONN_STATE_CONNECTING
);
/* If not all connections are "connecting", then some are
* downloading. We want to have at most one downloading at a time. */
if
(
connect_consens_conn_count
<
consens_conn_count
)
{
if
(
networkstatus_consensus_is_already_downloading
(
resource
))
continue
;
}
/* Make multiple connections for a bootstrap consensus download. */
update_consensus_bootstrap_multiple_downloads
(
now
,
options
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment