don't hang if store cannot be opened asynchronously

This commit is contained in:
Oswald Buddenhagen 2010-12-19 23:33:29 +01:00
parent 2c729bf9e6
commit 9e10e871fd

View File

@ -678,8 +678,9 @@ store_opened( store_t *ctx, void *aux )
MVARS(aux)
if (!ctx) {
mvars->state[t] = ST_CLOSED;
mvars->ret = mvars->skip = 1;
mvars->state[t] = ST_CLOSED;
sync_chans( mvars, E_OPEN );
return;
}
mvars->ctx[t] = ctx;