commit 958af473a08c386a86e88277d5da9669ead4a6cd
Author: Oswald Buddenhagen <[email protected]>
Date:   Fri Jan 2 12:38:48 2015 +0100

    fix conditional for early failure in cancel_done()

 src/sync.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

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

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to