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

@ -962,10 +962,14 @@ int p3FileDatabase::getSharedDirStatistics(const RsPeerId& pid,SharedDirStats& s
void p3FileDatabase::removeExtraFile(const RsFileHash& hash) void p3FileDatabase::removeExtraFile(const RsFileHash& hash)
{ {
{
RS_STACK_MUTEX(mFLSMtx) ; RS_STACK_MUTEX(mFLSMtx) ;
mExtraFiles->removeExtraFile(hash); mExtraFiles->removeExtraFile(hash);
mLastExtraFilesCacheUpdate = 0 ; // forced cache reload mLastExtraFilesCacheUpdate = 0 ; // forced cache reload
}
RsServer::notify()->notifyListChange(NOTIFY_LIST_DIRLIST_LOCAL, 0);
} }
void p3FileDatabase::getExtraFilesDirDetails(void *ref,DirectoryStorage::EntryIndex e,DirDetails& d) const void p3FileDatabase::getExtraFilesDirDetails(void *ref,DirectoryStorage::EntryIndex e,DirDetails& d) const