diff options
| author | John Hood <jhood@niksun.com> | 2022-04-21 21:39:14 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2022-07-28 15:55:13 +0000 |
| commit | 60b92ba9323c2dd249ba3a3349b207c2d0b9d212 (patch) | |
| tree | a5261b32423b0bc95e8db4958c4674511964a4cb | |
| parent | 4148dffadd3b10fa11717cc36263e1d536aaa2f0 (diff) | |
| download | src-60b92ba9323c2dd249ba3a3349b207c2d0b9d212.tar.gz src-60b92ba9323c2dd249ba3a3349b207c2d0b9d212.zip | |
/usr/sbin/pkg: don't sleep on fetch failure
PR: 263458
| -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 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; |
