summaryrefslogtreecommitdiff
path: root/src/net/download.cpp
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 /src/net/download.cpp
parentf651273ebf2a8b11aa01ed1434ecb613177ced6a (diff)
downloadmv-0fb4c440d9f4d8458a3cfa402eba12e834cfbc85.tar.gz
mv-0fb4c440d9f4d8458a3cfa402eba12e834cfbc85.tar.bz2
mv-0fb4c440d9f4d8458a3cfa402eba12e834cfbc85.tar.xz
mv-0fb4c440d9f4d8458a3cfa402eba12e834cfbc85.zip
Try retry download updates if curl error happend.
Diffstat (limited to 'src/net/download.cpp')
-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)