summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-08-19 22:09:56 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-08-20 00:25:17 +0200
commit3f8a48f5d81baee92f83a666842b7322195d6116 (patch)
treedcd8f320e6a627d11d26701941f20d0b645916e5
parent575cf048132c905e91bf2266be93e245c993498f (diff)
updater: windows prevents moving file with open file handles
Change-Id: Iebd4886f3d44f816fc06b7c80e7368bbac3d159a
-rw-r--r--desktop/source/app/updater.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop/source/app/updater.cxx b/desktop/source/app/updater.cxx
index a034dc3a478e..73a3bd993476 100644
--- a/desktop/source/app/updater.cxx
+++ b/desktop/source/app/updater.cxx
@@ -651,6 +651,7 @@ void download_file(const OUString& rURL, size_t nFileSize, const OUString& rHash
OUString aDestFile = aPatchDirURL + aFileName;
Updater::log("Destination File: " + aDestFile);
+ aDownloadedFile.close();
eError = osl::File::move(aTempFile, aDestFile);
handle_file_error(eError, "Could not move the file from the Temp directory to the user config: TempFile: " + aTempFile + "; DestFile: " + aDestFile);
}