mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
Always close file in repair
This commit is contained in:
parent
cfbc61d1f7
commit
9d59b8f5cf
@ -657,9 +657,9 @@ int Downloader::repairFile(std::string url, std::string filepath, std::string xm
|
||||
{
|
||||
std::cout << "Filesizes don't match" << std::endl
|
||||
<< "Incomplete download or different version" << std::endl;
|
||||
fclose(outfile);
|
||||
if (this->config.bDownload)
|
||||
{
|
||||
fclose(outfile);
|
||||
std::cout << "Redownloading file" << std::endl;
|
||||
boost::filesystem::path path = filepath;
|
||||
if (!boost::filesystem::remove(path))
|
||||
|
Loading…
Reference in New Issue
Block a user