parent
9091d0c49a
commit
0868a4004b
|
@ -2517,9 +2517,6 @@ router_set_networkstatus(const char *s, time_t arrived_at,
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (source != NS_FROM_CACHE && trusted_dir)
|
||||
trusted_dir->n_networkstatus_failures = 0;
|
||||
|
||||
found = 0;
|
||||
for (i=0; i < smartlist_len(networkstatus_list); ++i) {
|
||||
networkstatus_t *old_ns = smartlist_get(networkstatus_list, i);
|
||||
|
@ -2567,6 +2564,9 @@ router_set_networkstatus(const char *s, time_t arrived_at,
|
|||
}
|
||||
}
|
||||
|
||||
if (source != NS_FROM_CACHE && trusted_dir)
|
||||
trusted_dir->n_networkstatus_failures = 0;
|
||||
|
||||
if (!found)
|
||||
smartlist_add(networkstatus_list, ns);
|
||||
|
||||
|
|
Loading…
Reference in New Issue