mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 22:25:04 -04:00
added missing mutex (caused memory error)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3878 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
313d3eac6a
commit
90211debe9
1 changed files with 2 additions and 0 deletions
|
@ -100,6 +100,8 @@ bool ftFileProvider::FileDetails(FileInfo &info)
|
|||
|
||||
bool ftFileProvider::purgeOldPeers(time_t now,uint32_t max_duration)
|
||||
{
|
||||
RsStackMutex stack(ftcMutex); /********** STACK LOCKED MTX ******/
|
||||
|
||||
bool ret = true ;
|
||||
for(std::map<std::string,PeerUploadInfo>::iterator it(uploading_peers.begin());it!=uploading_peers.end();)
|
||||
if( (*it).second.lastTS+max_duration < (uint32_t)now)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue