fixed bug causing some transfers to never finish

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5063 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2012-03-30 19:33:58 +00:00
parent 6fa38e7d18
commit 08a52dc369

View File

@ -244,7 +244,12 @@ void ChunkMap::setChunkCheckingResult(uint32_t chunk_number,bool check_succeeded
_file_is_complete = true ;
for(uint32_t i=0;i<_map.size();++i)
#ifdef USE_NEW_CHUNK_CHECKING_CODE
if(_map[i] != FileChunksInfo::CHUNK_DONE)
#else
if(_map[i] != FileChunksInfo::CHUNK_DONE && _map[i] != FileChunksInfo::CHUNK_CHECKING)
#endif
{
_file_is_complete = false ;
break ;