Browse Source

fix conditional for early failure in cancel_done()

1.1
Oswald Buddenhagen 10 years ago
parent
commit
958af473a0
  1. 3
      src/sync.c

3
src/sync.c

@ -497,11 +497,12 @@ cancel_done( void *aux )
svars->state[t] |= ST_CANCELED; svars->state[t] |= ST_CANCELED;
if (svars->state[1-t] & ST_CANCELED) { if (svars->state[1-t] & ST_CANCELED) {
if (svars->lfd) { if (svars->lfd >= 0) {
Fclose( svars->nfp, 0 ); Fclose( svars->nfp, 0 );
Fclose( svars->jfp, 0 ); Fclose( svars->jfp, 0 );
sync_bail( svars ); sync_bail( svars );
} else { } else {
/* Early failure during box selection. */
sync_bail2( svars ); sync_bail2( svars );
} }
} }

Loading…
Cancel
Save