mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
/usr/sbin/pkg: don't sleep on fetch failure
PR: 263458
This commit is contained in:
parent
4148dffadd
commit
60b92ba932
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user