diff --git a/src/connector.c b/src/connector.c index deecffd9..486a9a7e 100644 --- a/src/connector.c +++ b/src/connector.c @@ -193,7 +193,11 @@ retry: } ck_runlock(&ci->lock); - ret = poll(fds, nfds, 60000); + if (!nfds) { + cksleep_ms(100); + goto retry; + } + ret = poll(fds, nfds, 1000); if (ret < 0) { if (interrupted()) goto retry;