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:
csoler 2015-04-01 21:08:30 +00:00
parent a32acc67bb
commit 6594156442
4 changed files with 23 additions and 23 deletions

View file

@ -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)