diff --git a/src/connector.c b/src/connector.c index 467e5a66..dab3225c 100644 --- a/src/connector.c +++ b/src/connector.c @@ -308,7 +308,7 @@ repoll: goto out; } - for (i = 0; i < nfds, ret > 0; i++) { + for (i = 0; i < nfds || ret > 0; i++) { int fd, accepted; if (!fds[i].revents)