diff --git a/src/connector.c b/src/connector.c index 73ad62c3..9c5c5a68 100644 --- a/src/connector.c +++ b/src/connector.c @@ -244,6 +244,8 @@ void *receiver(void *arg) retry: nfds = 0; + while (!ci->accept) + sleep(1); ck_rlock(&ci->lock); HASH_ITER(fdhh, fdclients, client, tmp) {