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
1 changed files with 4 additions and 0 deletions

View File

@ -2409,6 +2409,10 @@ void tr_torrent::set_download_dir(std::string_view path, bool is_new_torrent)
recheck_completeness(); 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 // decide whether we should be looking for files in downloadDir or incompleteDir