Skip to content

Commit

Permalink
fix: reset download progress just in case
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
  • Loading branch information
joshtrichards committed Jul 16, 2024
1 parent 1135887 commit 2c6045e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@ public function downloadUpdate(): void {

$storageLocation = $this->getUpdateDirectoryLocation() . '/updater-'.$this->getConfigOptionMandatoryString('instanceid') . '/downloads/';
$saveLocation = $storageLocation . basename($response['url']);
$this->previousProgress = 0;

$ch = curl_init($response['url']);

Expand Down
1 change: 1 addition & 0 deletions lib/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ public function downloadUpdate(): void {

$storageLocation = $this->getUpdateDirectoryLocation() . '/updater-'.$this->getConfigOptionMandatoryString('instanceid') . '/downloads/';
$saveLocation = $storageLocation . basename($response['url']);
$this->previousProgress = 0;

$ch = curl_init($response['url']);

Expand Down
Binary file modified updater.phar
Binary file not shown.

0 comments on commit 2c6045e

Please sign in to comment.