diff --git a/src/generator.c b/src/generator.c index 88bf20b2..2853baf7 100644 --- a/src/generator.c +++ b/src/generator.c @@ -213,8 +213,9 @@ retry: * without blocking on server_alive() */ for (i = 0; i < ckp->btcds; i++) { server_instance_t *si = ckp->servers[i]; + cs = &si->cs; - if (si->alive) { + if (si->alive && cs->fd > 0) { alive = si; goto living; }