diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-10-07 09:34:28 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-10-13 14:30:02 -0400 |
commit | b8e2be5557287a00905aa30f78eff42519b164d5 (patch) | |
tree | bbddb240e153e007366b7c0eec18f8b35b41bd5f /src | |
parent | 3efeb711f104b58b1f8a46c56c56246f0049e3e1 (diff) | |
download | tor-b8e2be5557287a00905aa30f78eff42519b164d5.tar.gz tor-b8e2be5557287a00905aa30f78eff42519b164d5.zip |
Don't reset the download failure status of any object marked as impossible
Diffstat (limited to 'src')
-rw-r--r-- | src/or/directory.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 1aaa75ccee..8e75bfdeeb 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -3442,6 +3442,9 @@ download_status_increment_failure(download_status_t *dls, int status_code, void 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( dls, get_options()->DirPort_set); |