1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 08:43:27 +00:00

feat: check if files are missing after setting location (#5978)

This commit is contained in:
Yat Ho 2023-10-02 08:21:18 +08:00 committed by GitHub
parent 1722f00777
commit ee4daa059d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2409,6 +2409,10 @@ void tr_torrent::set_download_dir(std::string_view path, bool is_new_torrent)
recheck_completeness();
}
}
else if (error == TR_STAT_LOCAL_ERROR && !setLocalErrorIfFilesDisappeared(this))
{
tr_torrentClearError(this);
}
}
// decide whether we should be looking for files in downloadDir or incompleteDir