mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-28 00:45:34 -04:00
added optional delay to check files after download in order to prevent skiping recently downloaded files
This commit is contained in:
parent
0efc6b00a1
commit
10bee9f26b
9 changed files with 18 additions and 14 deletions
|
@ -821,7 +821,7 @@ bool ftController::completeFile(const RsFileHash& hash)
|
|||
RsServer::notify()->notifyDownloadComplete(hash.toStdString());
|
||||
RsServer::notify()->notifyDownloadCompleteCount(completeCount);
|
||||
|
||||
rsFiles->ForceDirectoryCheck() ;
|
||||
rsFiles->ForceDirectoryCheck(true) ;
|
||||
|
||||
IndicateConfigChanged(); /* completed transfer -> save */
|
||||
return true;
|
||||
|
|
|
@ -791,9 +791,9 @@ void ftServer::updateSinceGroupPermissionsChanged()
|
|||
{
|
||||
mFileDatabase->forceSyncWithPeers();
|
||||
}
|
||||
void ftServer::ForceDirectoryCheck()
|
||||
void ftServer::ForceDirectoryCheck(bool add_safe_delay)
|
||||
{
|
||||
mFileDatabase->forceDirectoryCheck();
|
||||
mFileDatabase->forceDirectoryCheck(add_safe_delay);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -275,7 +275,7 @@ public:
|
|||
* Utility Functions
|
||||
***/
|
||||
virtual bool ConvertSharedFilePath(std::string path, std::string &fullpath);
|
||||
virtual void ForceDirectoryCheck();
|
||||
virtual void ForceDirectoryCheck(bool add_safe_delay);
|
||||
virtual void updateSinceGroupPermissionsChanged() ;
|
||||
virtual bool InDirectoryCheck();
|
||||
virtual bool copyFile(const std::string& source, const std::string& dest);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue