added missing setPeerState that caused tunnels to get stuck to default minimum rate unless the list of connected peers change

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6739 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2013-09-15 18:27:52 +00:00
parent 4b44304aec
commit d127d36131

View File

@ -174,6 +174,7 @@ void ftController::addFileSource(const std::string& hash,const std::string& peer
if(it->first == hash) if(it->first == hash)
{ {
it->second->mTransfer->addFileSource(peer_id); it->second->mTransfer->addFileSource(peer_id);
setPeerState(it->second->mTransfer, peer_id, FT_CNTRL_STANDARD_RATE, mLinkMgr->isOnline( peer_id ));
#ifdef CONTROL_DEBUG #ifdef CONTROL_DEBUG
std::cerr << "... added." << std::endl ; std::cerr << "... added." << std::endl ;