From b07baba8792e2aabb2e88b73ffc27e7398e1c286 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 31 Dec 2008 17:22:18 +0000 Subject: Increment n_download_failures up to IMPOSSIBLE_TO_DOWNLOAD-1, not up to IMPOSSIBLE_TO_DOWNLOAD. svn:r17835 --- src/or/directory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/directory.c') 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; } -- cgit v1.2.3-54-g00ecf