diff --git a/src/sync.c b/src/sync.c index fd1ba4f..99f3895 100644 --- a/src/sync.c +++ b/src/sync.c @@ -497,11 +497,12 @@ cancel_done( void *aux ) svars->state[t] |= ST_CANCELED; if (svars->state[1-t] & ST_CANCELED) { - if (svars->lfd) { + if (svars->lfd >= 0) { Fclose( svars->nfp, 0 ); Fclose( svars->jfp, 0 ); sync_bail( svars ); } else { + /* Early failure during box selection. */ sync_bail2( svars ); } }