From 60b92ba9323c2dd249ba3a3349b207c2d0b9d212 Mon Sep 17 00:00:00 2001 From: John Hood Date: Thu, 21 Apr 2022 17:39:14 -0400 Subject: [PATCH] /usr/sbin/pkg: don't sleep on fetch failure PR: 263458 --- usr.sbin/pkg/pkg.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/usr.sbin/pkg/pkg.c b/usr.sbin/pkg/pkg.c index 292f4a68b824..fdc519be8492 100644 --- a/usr.sbin/pkg/pkg.c +++ b/usr.sbin/pkg/pkg.c @@ -236,9 +236,7 @@ fetch_to_fd(const char *url, char *path, const char *fetchOpts) --retry; if (retry <= 0) goto fetchfail; - if (mirrors == NULL) { - sleep(1); - } else { + if (mirrors != NULL) { current = current->next; if (current == NULL) current = mirrors;