diff --git a/lib/download.c b/lib/download.c index a613c829..2942ddec 100644 --- a/lib/download.c +++ b/lib/download.c @@ -111,6 +111,7 @@ xbps_fetch_file(struct xbps_handle *xhp, fetchLastErrCode = 0; fetchTimeout = xhp->fetch_timeout; + fetchRestartCalls = 1; /* * Get the filename specified in URI argument. */