suppressed bug in file transfer while removing inactive chunks.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2468 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2010-03-01 20:46:29 +00:00
parent 1904c05bf9
commit e3f2f66702

View File

@ -228,6 +228,8 @@ void ChunkMap::removeInactiveChunks(std::vector<ftChunk::ChunkId>& to_remove)
_map[it->first] = FileChunksInfo::CHUNK_OUTSTANDING ; // reset the chunk
_total_downloaded -= (sizeOfChunk(it->first) - it->second._remains) ; // restore completion.
// Also remove the chunk from the chunk feed, to free the associated peer.
//
for(std::map<std::string,Chunk>::iterator it3=_active_chunks_feed.begin();it3!=_active_chunks_feed.end();)