Skip to content

Commit 9650bb7

Browse files
authored
Fix bug with failed downloads not erroring out. (#6123)
1 parent 3c06384 commit 9650bb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extension/src/packageManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export class PackageManager {
220220
} catch (error) {
221221
retryCount += 1;
222222
lastError = error;
223-
if (retryCount > MAX_RETRIES) {
223+
if (retryCount >= MAX_RETRIES) {
224224
this.AppendChannel(" " + localize("failed.download.url", "Failed to download {0}", pkg.url));
225225
throw error;
226226
} else {

0 commit comments

Comments
 (0)