mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-19 03:49:29 -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
1 changed files with 1 additions and 1 deletions
|
@ -326,7 +326,7 @@ uint32_t ChunkMap::getAvailableChunk(uint32_t start_location,const std::string&
|
||||||
{
|
{
|
||||||
SourceChunksInfo& pchunks(_peers_chunks_availability[peer_id]) ;
|
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:
|
// 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
|
// - 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…
Add table
Add a link
Reference in a new issue