Catch the common case early in the function to minimize the
number of checks for that case.
a = &afi[sl->format];
if (!sl->receiver_node)
continue;
+ if ((!a->num_filters || sl->fc) && sl->wng)
+ continue; /* everything already started */
if (!a->num_filters) {
if (sl->receiver_node->loaded && !sl->wng) {
open_writers(i);
s->timeout = min_delay;
continue;
}
- if (!sl->fc || !*sl->fc->out_loaded || sl->wng)
+ if (sl->wng || !sl->fc || !*sl->fc->out_loaded)
continue;
if (tv_diff(now, &initial_delay_barrier, &diff) > 0) {
open_writers(i);