fixup! refactor: tr_completion (#2220)

fix inverted logic regression
This commit is contained in:
Charles Kerr 2021-11-28 15:55:29 -06:00
parent e2b1c71982
commit ef154e48ae
1 changed files with 1 additions and 1 deletions

View File

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