From 8115e591cae912d90b23cc7b673a84b22380f734 Mon Sep 17 00:00:00 2001 From: Sude Date: Wed, 26 Feb 2014 15:32:44 +0200 Subject: [PATCH] Fix wrong condition in f671834 --- src/downloader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))