changes attempts, delay seconds

This commit is contained in:
amd64fox 2024-10-28 22:08:46 +03:00 committed by GitHub
parent b0bdf02380
commit 2a169e4168
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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