diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-04 02:51:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-04 02:51:44 +0300 |
commit | 0fb4c440d9f4d8458a3cfa402eba12e834cfbc85 (patch) | |
tree | 990163122de74909b7aa4d43f5ce9b26ea7a773c /src/net/download.cpp | |
parent | f651273ebf2a8b11aa01ed1434ecb613177ced6a (diff) | |
download | plus-0fb4c440d9f4d8458a3cfa402eba12e834cfbc85.tar.gz plus-0fb4c440d9f4d8458a3cfa402eba12e834cfbc85.tar.bz2 plus-0fb4c440d9f4d8458a3cfa402eba12e834cfbc85.tar.xz plus-0fb4c440d9f4d8458a3cfa402eba12e834cfbc85.zip |
Try retry download updates if curl error happend.
Diffstat (limited to 'src/net/download.cpp')
-rw-r--r-- | src/net/download.cpp | 3 |
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) |