Skip to content

Commit

Permalink
fix update
Browse files Browse the repository at this point in the history
  • Loading branch information
riderkick committed Feb 27, 2018
1 parent 3dc2be2 commit 9e1f5f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions baseunits/SelfUpdater.pas
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ procedure TSelfUpdaterThread.SyncFinishRestart;

procedure TSelfUpdaterThread.ProceedUpdate;
begin
writeln('proced update?');
if not DownloadSuccess then Exit;
if FileExists(OLD_CURRENT_UPDATER_EXE) then
DeleteFile(OLD_CURRENT_UPDATER_EXE);
Expand Down Expand Up @@ -257,6 +258,7 @@ procedure TSelfUpdaterThread.Execute;
Synchronize(@SyncStartDownload);
if FHTTP.GET(UpdateURL) and (FHTTP.ResultCode < 300) then
begin
DownloadSuccess := True;
Filename := FMD_DIRECTORY + UPDATE_PACKAGE_NAME;
if FileExists(Filename) then
DeleteFile(Filename);
Expand Down

0 comments on commit 9e1f5f8

Please sign in to comment.