mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
36198b7e6a
commit
0d3d1ebc18
@ -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) ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user