diff options
| author | John Hood <jhood@niksun.com> | 2022-04-21 21:39:14 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2022-10-12 09:01:44 +0000 |
| commit | fdf6f6babe6169261dd396c9bf966ab8a82a7c64 (patch) | |
| tree | 3a60996d58bb7fe2fa943f88d7952178706aa7da | |
| parent | f9bf4beab044d34adf6c92bdca40952d5c26ad96 (diff) | |
| download | src-fdf6f6babe6169261dd396c9bf966ab8a82a7c64.tar.gz src-fdf6f6babe6169261dd396c9bf966ab8a82a7c64.zip | |
/usr/sbin/pkg: don't sleep on fetch failure
PR: 263458
(cherry picked from commit 60b92ba9323c2dd249ba3a3349b207c2d0b9d212)
| -rw-r--r-- | usr.sbin/pkg/pkg.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/pkg/pkg.c b/usr.sbin/pkg/pkg.c index f759a3c31d1f..e5e4c656a51f 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; |
