fixed the bug that caused unwanted direct downloads. A check was missing in ftController::FileRequest

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6911 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2013-11-27 20:12:16 +00:00
parent 75c178082f
commit 830404a25e

View File

@ -1179,6 +1179,7 @@ bool ftController::FileRequest(const std::string& fname, const std::string& has
*/ */
for(it = srcIds.begin(); it != srcIds.end(); it++) for(it = srcIds.begin(); it != srcIds.end(); it++)
if(rsPeers->servicePermissionFlags_sslid(*it) & RS_SERVICE_PERM_DIRECT_DL)
{ {
uint32_t i, j; uint32_t i, j;
if ((dit->second)->mTransfer->getPeerState(*it, i, j)) if ((dit->second)->mTransfer->getPeerState(*it, i, j))