diff --git a/ms-spotify-check.ps1 b/ms-spotify-check.ps1 index a3d2fc2..ea24211 100644 --- a/ms-spotify-check.ps1 +++ b/ms-spotify-check.ps1 @@ -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 \ No newline at end of file +Main