diff --git a/src/downloader.cpp b/src/downloader.cpp index 9adc381..fbefb80 100644 --- a/src/downloader.cpp +++ b/src/downloader.cpp @@ -790,7 +790,7 @@ CURLcode Downloader::downloadFile(const std::string& url, const std::string& fil fclose(outfile); // Download failed and was not a resume attempt so delete the file - if ( (res != CURLE_OK || res != CURLE_PARTIAL_FILE) && !bResume ) + if (res != CURLE_OK && res != CURLE_PARTIAL_FILE && !bResume) { boost::filesystem::path path = filepath; if (boost::filesystem::exists(path))