summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-04 02:51:44 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-04 02:51:44 +0300
commit0fb4c440d9f4d8458a3cfa402eba12e834cfbc85 (patch)
tree990163122de74909b7aa4d43f5ce9b26ea7a773c
parentf651273ebf2a8b11aa01ed1434ecb613177ced6a (diff)
downloadplus-0fb4c440d9f4d8458a3cfa402eba12e834cfbc85.tar.gz
plus-0fb4c440d9f4d8458a3cfa402eba12e834cfbc85.tar.bz2
plus-0fb4c440d9f4d8458a3cfa402eba12e834cfbc85.tar.xz
plus-0fb4c440d9f4d8458a3cfa402eba12e834cfbc85.zip
Try retry download updates if curl error happend.
-rw-r--r--src/net/download.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/download.cpp b/src/net/download.cpp
index 5d84ebedf..491100b3d 100644
--- a/src/net/download.cpp
+++ b/src/net/download.cpp
@@ -368,7 +368,8 @@ int Download::downloadThread(void *ptr)
logger->log_r("curl error %d: %s host: %s",
res, d->mError, d->mUrl.c_str());
}
- break;
+ attempts++;
+ continue;
}
if (d->mOptions.cancel)