From 0fb4c440d9f4d8458a3cfa402eba12e834cfbc85 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 4 Aug 2015 02:51:44 +0300 Subject: Try retry download updates if curl error happend. --- src/net/download.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3-70-g09d2