Skip to content

Commit 05d158e

Browse files
committed
fix error shown when pulling with no sources selected
1 parent 7f2922b commit 05d158e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ui.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,8 @@ static void *PullTLEThread(void *arg)
433433

434434
pull_partial = (ok_count > 0 && fail_count > 0);
435435
__sync_synchronize(); /* ensure pull_partial is visible before pull_state on ARM */
436-
pull_state = (ok_count > 0) ? PULL_DONE : PULL_ERROR;
436+
if (fail_count > 0 && ok_count == 0) pull_state = PULL_ERROR;
437+
else pull_state = PULL_DONE;
437438
return NULL;
438439
}
439440

0 commit comments

Comments
 (0)