mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Don't reset the download failure status of any object marked as impossible
This commit is contained in:
parent
3efeb711f1
commit
b8e2be5557
@ -3442,6 +3442,9 @@ download_status_increment_failure(download_status_t *dls, int status_code,
|
|||||||
void
|
void
|
||||||
download_status_reset(download_status_t *dls)
|
download_status_reset(download_status_t *dls)
|
||||||
{
|
{
|
||||||
|
if (dls->n_download_failures == IMPOSSIBLE_TO_DOWNLOAD)
|
||||||
|
return; /* Don't reset this. */
|
||||||
|
|
||||||
const smartlist_t *schedule = find_dl_schedule_and_len(
|
const smartlist_t *schedule = find_dl_schedule_and_len(
|
||||||
dls, get_options()->DirPort_set);
|
dls, get_options()->DirPort_set);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user