added safety check to ftChunkMap call to p3turtle, mainly for tests to run

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3582 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2010-10-01 20:07:29 +00:00
parent 6fc8f8831b
commit d71dd2889d

View File

@ -326,7 +326,7 @@ uint32_t ChunkMap::getAvailableChunk(uint32_t start_location,const std::string&
{
SourceChunksInfo& pchunks(_peers_chunks_availability[peer_id]) ;
bool assume_availability = !rsTurtle->isTurtlePeer(peer_id) ;
bool assume_availability = !(rsTurtle!=NULL && rsTurtle->isTurtlePeer(peer_id)) ;
// Ok, we don't have the info, so two cases:
// - peer_id is a not a turtle peer, so he is considered having the full file source, so we init with a plain chunkmap