CONN_RUNNING
if ((c->state & CONN_RUNNING) && TAILQ_EMPTY(&c->tasks))
if (c && (c->state & CONN_RUNNING))
if (c->state & CONN_RUNNING)
} else if (c->state & CONN_RUNNING && state != SESS_FAILED)
} else if (c->state & CONN_RUNNING)