diff options
author | vng <viktor.govako@gmail.com> | 2012-06-21 06:51:05 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:40:05 +0300 |
commit | 211430071df431f03b559833446c3eda873f3113 (patch) | |
tree | 42cb0e6d036f9a4a18c612608325611809fb50f3 /platform/http_request.cpp | |
parent | 66b7991091ec7891e6566663053dc4a20186db1a (diff) |
Delete destination file in downloader on success before renaming.
Diffstat (limited to 'platform/http_request.cpp')
-rw-r--r-- | platform/http_request.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/http_request.cpp b/platform/http_request.cpp index dd68ee3bf7..53f383db39 100644 --- a/platform/http_request.cpp +++ b/platform/http_request.cpp @@ -193,6 +193,7 @@ class FileHttpRequest : public HttpRequest, public IHttpThreadCallback my::DeleteFileX(m_filePath + RESUME_FILE_EXTENSION); // Rename finished file to it's original name. + my::DeleteFileX(m_filePath); CHECK(my::RenameFileX(m_filePath + DOWNLOADING_FILE_EXTENSION, m_filePath), ()); DisableBackupForFile(m_filePath); |