[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/maint-0.2.8] use the new function here too
commit 59da060f10e6abd1681ad00dddd4410d52ce1781
Author: Roger Dingledine <arma@xxxxxxxxxxxxxx>
Date: Wed Apr 13 01:30:29 2016 -0400
use the new function here too
---
src/or/networkstatus.c | 15 +--------------
1 file changed, 1 insertion(+), 14 deletions(-)
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index e90603e..4a9b367 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -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,
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits