CF_LOGIN_READY
while (!(ic->ic_state_flags & CF_LOGIN_READY) &&
ic->ic_state_flags |= CF_LOGIN_READY;