diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-31 17:22:18 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-31 17:22:18 +0000 |
commit | b07baba8792e2aabb2e88b73ffc27e7398e1c286 (patch) | |
tree | e9b80f7df43801ce5d61311c95bc2d5db589cd23 /src | |
parent | dfc6555ddd959ac8648ee7c1b598a71d5b09453c (diff) | |
download | tor-b07baba8792e2aabb2e88b73ffc27e7398e1c286.tar.gz tor-b07baba8792e2aabb2e88b73ffc27e7398e1c286.zip |
Increment n_download_failures up to IMPOSSIBLE_TO_DOWNLOAD-1, not up to IMPOSSIBLE_TO_DOWNLOAD.
svn:r17835
Diffstat (limited to 'src')
-rw-r--r-- | src/or/directory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 68f438106b..ed2e859dc8 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -3341,7 +3341,7 @@ download_status_increment_failure(download_status_t *dls, int status_code, int increment; tor_assert(dls); if (status_code != 503 || server) { - if (dls->n_download_failures < IMPOSSIBLE_TO_DOWNLOAD) + if (dls->n_download_failures < IMPOSSIBLE_TO_DOWNLOAD-1) ++dls->n_download_failures; } |