RsFiles::alreadyHaveFile look into extra list too

This commit is contained in:
Gioacchino Mazzurco 2020-05-29 11:03:57 +02:00
parent 968f234bfd
commit 43f7b6c0ba
No known key found for this signature in database
GPG key ID: A1FBCA3872E87051
2 changed files with 10 additions and 3 deletions

View file

@ -293,7 +293,8 @@ bool ftServer::getFileData(const RsFileHash& hash, uint64_t offset, uint32_t& re
bool ftServer::alreadyHaveFile(const RsFileHash& hash, FileInfo &info)
{
return mFileDatabase->search(hash, RS_FILE_HINTS_LOCAL, info);
return mFileDatabase->search(
hash, RS_FILE_HINTS_EXTRA | RS_FILE_HINTS_LOCAL, info );
}
bool ftServer::FileRequest(