From 2a169e416862ab84239e535ed6b3a7b95343bc2d Mon Sep 17 00:00:00 2001 From: amd64fox <62529699+amd64fox@users.noreply.github.com> Date: Mon, 28 Oct 2024 22:08:46 +0300 Subject: [PATCH] changes attempts, delay seconds --- ms-spotify-check.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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