mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-01 05:01:59 +08:00
Http: fixed no_retry handling
This commit is contained in:
parent
7b2ee2ae0c
commit
5b79c8b50a
@ -398,8 +398,8 @@ void Http::priv::http_perform(const HttpRetryOpt& retry_opts)
|
||||
|
||||
if (res == CURLE_OK)
|
||||
::curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &http_status);
|
||||
retry = delay >= 0ms && is_transient_error(res, http_status);
|
||||
if (retry && retry_opts.max_retries > 0 && num_retries >= retry_opts.max_retries)
|
||||
retry = is_transient_error(res, http_status);
|
||||
if (retry && num_retries >= retry_opts.max_retries)
|
||||
retry = false;
|
||||
if (retry) {
|
||||
num_retries++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user