fix conditional for early failure in cancel_done()

This commit is contained in:
Oswald Buddenhagen 2015-01-02 12:38:48 +01:00
parent 9eba3d8cd9
commit 958af473a0

View File

@ -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 );
}
}