diff --git a/core/network/Downloader-curl.cpp b/core/network/Downloader-curl.cpp index 5fa8416d199..514c31d949f 100644 --- a/core/network/Downloader-curl.cpp +++ b/core/network/Downloader-curl.cpp @@ -52,7 +52,7 @@ // https://curl.se/libcurl/c/curl_easy_getinfo.html // https://curl.se/libcurl/c/curl_easy_setopt.html -# define AX_CURL_POLL_TIMEOUT_MS 1000 // wait until DNS query done +# define AX_CURL_POLL_TIMEOUT_MS 1000 enum { @@ -611,7 +611,6 @@ class DownloaderCURL::Impl : public std::enable_shared_from_this(task->_coTask.get()); @@ -623,7 +622,7 @@ class DownloaderCURL::Impl : public std::enable_shared_from_thissetErrorDesc(DownloadTask::ERROR_IMPL_INTERNAL, errCode, std::move(errorMsg)); break; } @@ -669,9 +668,12 @@ class DownloaderCURL::Impl : public std::enable_shared_from_this= countOfMaxProcessingTasks) + break; + // get task wrapper from request queue std::shared_ptr task; {