Skip to content
Snippets Groups Projects
Commit 10be754a authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

BUG: fix alternative to curl multi

parent 299d4138
No related merge requests found
...@@ -254,15 +254,13 @@ int CurlHelper::RetrieveFileMulti(const std::vector<std::string>& listURLs, ...@@ -254,15 +254,13 @@ int CurlHelper::RetrieveFileMulti(const std::vector<std::string>& listURLs,
// Cleanup multi handle // Cleanup multi handle
curl_multi_cleanup(multiHandle); curl_multi_cleanup(multiHandle);
#else #else
//fallback on non curl multi //fallback on non curl multi
otbMsgDevMacro(<< "Curl multi is not available, fallback on standard"); otbMsgDevMacro(<< "Curl multi is not available, fallback on standard");
std::vector<std::string>::const_iterator url; std::vector<std::string>::const_iterator url;
std::vector<FILE *>::const_iterator file; std::vector<std::string>::const_iterator file;
url = listURLs.begin(); url = listURLs.begin();
file = listFiles.begin(); file = listFilename.begin();
while ( (url != listURLs.end()) && (file != listFiles.end() )) while ( (url != listURLs.end()) && (file != listFiles.end() ))
{ {
RetrieveFile(*url, *file); RetrieveFile(*url, *file);
...@@ -274,6 +272,4 @@ int CurlHelper::RetrieveFileMulti(const std::vector<std::string>& listURLs, ...@@ -274,6 +272,4 @@ int CurlHelper::RetrieveFileMulti(const std::vector<std::string>& listURLs,
#endif #endif
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment