* Switched on Turtle transfers for Channels,

* Enabled srcIds from secondary file transfer requests to be used.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3002 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2010-05-25 20:42:56 +00:00
parent c621cc5474
commit d93c56a355
2 changed files with 5 additions and 2 deletions

View File

@ -959,7 +959,7 @@ bool ftController::alreadyHaveFile(const std::string& hash)
FileInfo info ;
// check for downloads
if(FileDetails(hash, info))
if(FileDetails(hash, info) && (info.downloadStatus == FT_STATE_COMPLETE))
return true ;
// check for file lists

View File

@ -501,7 +501,10 @@ bool p3Channels::locked_eventDuplicateMsg(GroupInfo *grp, RsDistribMsg *msg, std
uint64_t size = fit->filesize;
std::string channelname = grpId;
std::string localpath = mChannelsDir + "/" + channelname;
uint32_t flags = RS_FILE_HINTS_EXTRA;
uint32_t flags = RS_FILE_HINTS_EXTRA |
RS_FILE_HINTS_BACKGROUND |
RS_FILE_HINTS_NETWORK_WIDE;
std::list<std::string> srcIds;
srcIds.push_back(id);