Updated SLA profiles.

Fixed the update downloader to ignore downloaded preset index if it is
older than the currently active one.
This commit is contained in:
bubnikv 2018-12-20 17:44:24 +01:00
parent 54fae97032
commit 42fada4576
4 changed files with 179 additions and 33 deletions

View file

@ -235,7 +235,9 @@ void Http::priv::http_perform()
#if LIBCURL_VERSION_MAJOR >= 7 && LIBCURL_VERSION_MINOR >= 32
::curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION, xfercb);
::curl_easy_setopt(curl, CURLOPT_XFERINFODATA, static_cast<void*>(this));
#ifndef _WIN32
(void)xfercb_legacy; // prevent unused function warning
#endif
#else
::curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, xfercb);
::curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, static_cast<void*>(this));