mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-25 23:45:49 -04:00
Fixed update of the shared files list after removing files.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6993 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
2dcf0acef3
commit
5fd1c68f9d
2 changed files with 18 additions and 5 deletions
|
@ -859,6 +859,8 @@ void FileIndexMonitor::updateCycle()
|
|||
|
||||
cb->notifyHashingInfo(NOTIFY_HASHTYPE_FINISH, "") ;
|
||||
|
||||
int cleanedCount = 0;
|
||||
|
||||
{ /* LOCKED DIRS */
|
||||
RsStackMutex stack(fiMutex); /**** LOCKED DIRS ****/
|
||||
|
||||
|
@ -866,7 +868,7 @@ void FileIndexMonitor::updateCycle()
|
|||
* have not had their timestamps updated.
|
||||
*/
|
||||
|
||||
fi.cleanOldEntries(startstamp) ;
|
||||
cleanedCount = fi.cleanOldEntries(startstamp) ;
|
||||
|
||||
#ifdef FIM_DEBUG
|
||||
/* print out the new directory structure */
|
||||
|
@ -901,6 +903,11 @@ void FileIndexMonitor::updateCycle()
|
|||
hashCache.save() ;
|
||||
}
|
||||
}
|
||||
|
||||
if (cleanedCount > 0) {
|
||||
// cb->notifyListPreChange(NOTIFY_LIST_DIRLIST_LOCAL, 0);
|
||||
cb->notifyListChange(NOTIFY_LIST_DIRLIST_LOCAL, 0);
|
||||
}
|
||||
}
|
||||
|
||||
static std::string friendlyUnit(uint64_t val)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue