lib/fetch: happy_eyeballs_connect check for waiting connections before

decrementing them, remove dead code
This commit is contained in:
Johannes Brechtmann 2019-06-22 16:40:49 +02:00 committed by Duncan Overbruck
parent 66f66ab7a1
commit 11e5190a36

View File

@ -609,6 +609,8 @@ wait:
if (pfd[i].fd != -1)
pfd[i].events = POLLOUT;
}
if (!waiting)
break;
if ((ret = poll(pfd, attempts, timeout ? timeout : -1)) == -1) {
err = errno;
rv = -1;
@ -639,10 +641,6 @@ wait:
rv = -1;
break;
}
if (!waiting)
break;
else if (done)
goto wait;
}
out: