fixed bug preventing files < 1MB to terminate properly

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5240 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2012-06-21 19:24:14 +00:00
parent 36198b7e6a
commit 0d3d1ebc18

View File

@ -165,6 +165,10 @@ void ChunkMap::dataReceived(const ftChunk::ChunkId& cid)
if(n > 0 || _file_size > CHUNKMAP_FIXED_CHUNK_SIZE) // dont' put <1MB files into checking mode. This is useless.
_chunks_checking_queue.push_back(n) ;
#ifdef USE_NEW_CHUNK_CHECKING_CODE
else
_map[n] = FileChunksInfo::CHUNK_DONE ;
#endif
_slices_to_download.erase(itc) ;