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