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;
}
mvars->ctx[t] = ctx;
if (mvars->skip) {
mvars->state[t] = ST_OPEN;
sync_chans( mvars, E_OPEN );
return;
}
if (!mvars->boxlist && mvars->chan->patterns && !ctx->listed)
if (!mvars->skip && !mvars->boxlist && mvars->chan->patterns && !ctx->listed) {
mvars->drv[t]->list( ctx, store_listed, AUX );
else {
} else {
mvars->state[t] = ST_OPEN;
sync_chans( mvars, E_OPEN );
}