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 <[email protected]>
  • Loading branch information
joshtrichards committed Jan 18, 2025
1 parent a723d1d commit 1ba811e
Show file tree
Hide file tree
Showing 2 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 @@ -572,6 +572,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 @@ -535,6 +535,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

0 comments on commit 1ba811e

Please sign in to comment.