Fix wrong condition in f671834

This commit is contained in:
Sude 2014-02-26 15:32:44 +02:00
parent c70a6c3775
commit 8115e591ca

View File

@ -790,7 +790,7 @@ CURLcode Downloader::downloadFile(const std::string& url, const std::string& fil
fclose(outfile); fclose(outfile);
// Download failed and was not a resume attempt so delete the file // 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; boost::filesystem::path path = filepath;
if (boost::filesystem::exists(path)) if (boost::filesystem::exists(path))