mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-27 00:15:51 -04:00
fixed bug leaking file lists. Do not use previous commit: it will leak your file lists.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8106 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a32acc67bb
commit
6594156442
4 changed files with 23 additions and 23 deletions
|
@ -1300,7 +1300,7 @@ time_t FileIndexMonitor::locked_saveFileIndexes(bool update_cache)
|
|||
return mod_time ;
|
||||
}
|
||||
|
||||
bool FileIndexMonitor::cachesAvailable(RsPeerId pid,std::map<CacheId, RsCacheData> &ids)
|
||||
bool FileIndexMonitor::cachesAvailable(const RsPeerId &pid,std::map<CacheId, RsCacheData> &ids)
|
||||
{
|
||||
lockData() ;
|
||||
#ifdef FIM_DEBUG
|
||||
|
@ -1314,7 +1314,7 @@ bool FileIndexMonitor::cachesAvailable(RsPeerId pid,std::map<CacheId, RsCacheDat
|
|||
RsPeerId ownId = rsPeers->getOwnId();
|
||||
|
||||
if(it != _cache_items_per_peer.end())
|
||||
{
|
||||
{
|
||||
ids[it->second.cid] = it->second ;
|
||||
|
||||
if(pid != ownId)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue