changes attempts, delay seconds
This commit is contained in:
parent
b0bdf02380
commit
2a169e4168
1 changed files with 4 additions and 4 deletions
|
|
@ -11,8 +11,8 @@ function Write-Log {
|
|||
function Invoke-WithRetry {
|
||||
param (
|
||||
[ScriptBlock]$ScriptBlock,
|
||||
[int]$MaxAttempts = 3,
|
||||
[int]$DelaySeconds = 5
|
||||
[int]$MaxAttempts = 6,
|
||||
[int]$DelaySeconds = 10
|
||||
)
|
||||
|
||||
$attempt = 1
|
||||
|
|
@ -102,7 +102,7 @@ function Get-LatestSpotifyVersion {
|
|||
}
|
||||
|
||||
return $latestFile
|
||||
} -MaxAttempts 6 -DelaySeconds 6
|
||||
}
|
||||
|
||||
if ($response) {
|
||||
Write-Log "Found: $($response.FileName)"
|
||||
|
|
@ -278,4 +278,4 @@ $tempPath = [System.IO.Path]::GetTempPath()
|
|||
$spotifyTempDir = Join-Path $tempPath "Spotify"
|
||||
New-Item -Path $spotifyTempDir -ItemType Directory -Force | Out-Null
|
||||
|
||||
Main
|
||||
Main
|
||||
|
|
|
|||
Loading…
Reference in a new issue