Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
fetch: Remove useless sleep in case failure to connect
Baptiste Daroussin committed 3 years ago
commit 446226c73decd7b7e3bc91c3c0fb356ca36f9add
parent 2d83819
1 file changed +1 -3
modified libpkg/fetch_libfetch.c
@@ -1,5 +1,5 @@
/*-
-
 * Copyright (c) 2020 Baptiste Daroussin <bapt@FreeBSD.org>
+
 * Copyright (c) 2020-2022 Baptiste Daroussin <bapt@FreeBSD.org>
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
@@ -208,8 +208,6 @@ fetch_connect(struct pkg_repo *repo, struct url *u)
				http_current = repo->http->next;
				if (http_current == NULL)
					http_current = repo->http;
-
			} else {
-
				sleep(1);
			}
		}
	}