don't commit state file when a fatal error occurs

This commit is contained in:
Oswald Buddenhagen 2006-02-11 20:02:06 +00:00
parent 630a04ad3e
commit 5224b5bc9f

View File

@ -1167,7 +1167,6 @@ sync_boxes( store_t *ctx[], const char *names[], channel_conf_t *chan )
}
}
finish:
Fprintf( nfp, "%d:%d %d:%d:%d\n", muidval, maxuid[M], suidval, smaxxuid, maxuid[S] );
for (srec = recs; srec; srec = srec->next) {
if (srec->status & S_DEAD)
@ -1199,5 +1198,10 @@ sync_boxes( store_t *ctx[], const char *names[], channel_conf_t *chan )
free( jname );
free( dname );
return ret;
finish:
Fclose( nfp );
Fclose( jfp );
goto bail;
}