Doesn't start sync if Ctrl+C is pressed.

This commit is contained in:
Andrea Mazzoleni 2013-07-10 19:37:58 +02:00
parent 7fa93e6c98
commit cefe021e60
3 changed files with 13 additions and 3 deletions

2
sync.c
View file

@ -116,7 +116,7 @@ static int state_sync_process(struct snapraid_state* state, struct snapraid_pari
countsize = 0;
countpos = 0;
state_progress_begin(state, blockstart, blockmax, countmax);
if (state_progress_begin(state, blockstart, blockmax, countmax))
for(i=blockstart;i<blockmax;++i) {
int one_invalid;
int one_valid;