mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
Fix retry on timeout
Don't delete the file on timeout
This commit is contained in:
parent
b4fd9fcf5c
commit
d8c66707cc
@ -1335,7 +1335,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 && res != CURLE_OPERATION_TIMEDOUT)
|
||||
{
|
||||
boost::filesystem::path path = filepath;
|
||||
if (boost::filesystem::exists(path))
|
||||
|
Loading…
Reference in New Issue
Block a user