de-duplicate code a bit

This commit is contained in:
Oswald Buddenhagen 2012-07-15 12:50:41 +02:00
parent 4d4de6e275
commit d2e13f147c

View File

@ -684,14 +684,9 @@ store_opened( store_t *ctx, void *aux )
return; return;
} }
mvars->ctx[t] = ctx; mvars->ctx[t] = ctx;
if (mvars->skip) { if (!mvars->skip && !mvars->boxlist && mvars->chan->patterns && !ctx->listed) {
mvars->state[t] = ST_OPEN;
sync_chans( mvars, E_OPEN );
return;
}
if (!mvars->boxlist && mvars->chan->patterns && !ctx->listed)
mvars->drv[t]->list( ctx, store_listed, AUX ); mvars->drv[t]->list( ctx, store_listed, AUX );
else { } else {
mvars->state[t] = ST_OPEN; mvars->state[t] = ST_OPEN;
sync_chans( mvars, E_OPEN ); sync_chans( mvars, E_OPEN );
} }