added proper notification when removing an extra file

This commit is contained in:
csoler 2018-09-27 21:20:06 +02:00
parent 7ab7c7db93
commit c77a28c17a
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C

View file

@ -961,6 +961,7 @@ int p3FileDatabase::getSharedDirStatistics(const RsPeerId& pid,SharedDirStats& s
}
void p3FileDatabase::removeExtraFile(const RsFileHash& hash)
{
{
RS_STACK_MUTEX(mFLSMtx) ;
@ -968,6 +969,9 @@ void p3FileDatabase::removeExtraFile(const RsFileHash& hash)
mLastExtraFilesCacheUpdate = 0 ; // forced cache reload
}
RsServer::notify()->notifyListChange(NOTIFY_LIST_DIRLIST_LOCAL, 0);
}
void p3FileDatabase::getExtraFilesDirDetails(void *ref,DirectoryStorage::EntryIndex e,DirDetails& d) const
{
// update the cache of extra files if last requested too long ago