mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Increment n_download_failures up to IMPOSSIBLE_TO_DOWNLOAD-1, not up to IMPOSSIBLE_TO_DOWNLOAD.
svn:r17835
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user