From c77a28c17af73896bb1d9732fb9eeab4ac943fe6 Mon Sep 17 00:00:00 2001 From: csoler Date: Thu, 27 Sep 2018 21:20:06 +0200 Subject: [PATCH] added proper notification when removing an extra file --- libretroshare/src/file_sharing/p3filelists.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libretroshare/src/file_sharing/p3filelists.cc b/libretroshare/src/file_sharing/p3filelists.cc index 4a0b92d4f..6331c6c03 100644 --- a/libretroshare/src/file_sharing/p3filelists.cc +++ b/libretroshare/src/file_sharing/p3filelists.cc @@ -962,10 +962,14 @@ int p3FileDatabase::getSharedDirStatistics(const RsPeerId& pid,SharedDirStats& s void p3FileDatabase::removeExtraFile(const RsFileHash& hash) { + { RS_STACK_MUTEX(mFLSMtx) ; mExtraFiles->removeExtraFile(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