From ef154e48aefcf7827bffcfce12d4b838701f38ce Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 28 Nov 2021 15:55:29 -0600 Subject: [PATCH] fixup! refactor: tr_completion (#2220) fix inverted logic regression --- libtransmission/resume.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/resume.cc b/libtransmission/resume.cc index 47d7902d7..766835417 100644 --- a/libtransmission/resume.cc +++ b/libtransmission/resume.cc @@ -884,7 +884,7 @@ static uint64_t loadFromFile(tr_torrent* tor, uint64_t fieldsToLoad, bool* didRe // Only load file priorities if we are actually downloading. // If we're a seed or partial seed, loading it is a waste of time. // NB: this is why loadProgress() comes before loadFilePriorities() - if (tor->isDone() && (fieldsToLoad & TR_FR_FILE_PRIORITIES) != 0) + if (!tor->isDone() && (fieldsToLoad & TR_FR_FILE_PRIORITIES) != 0) { fieldsLoaded |= loadFilePriorities(&top, tor); }