Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix: Autoupdater trying to open files twice could fail
Browse files Browse the repository at this point in the history
  • Loading branch information
tux3 committed Feb 17, 2017
1 parent b771f87 commit 20ff68c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/autoupdate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,10 +478,10 @@ bool AutoUpdater::downloadUpdate()
if (fileFile.open(QIODevice::ReadOnly) && fileFile.size() == (qint64)fileMeta.size)
{
qDebug() << "Skipping already downloaded file '" + fileMeta.installpath+ "'";
fileFile.close();
progressValue = initialProgress + step;
continue;
}
fileFile.close();

qDebug() << "Downloading '" + fileMeta.installpath + "' ...";

Expand Down

0 comments on commit 20ff68c

Please sign in to comment.