1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-28 10:38:45 +00:00

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

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