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