From d127d3613114d8d7771ec54cfd010c8c64a9d026 Mon Sep 17 00:00:00 2001 From: csoler Date: Sun, 15 Sep 2013 18:27:52 +0000 Subject: [PATCH] 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 --- libretroshare/src/ft/ftcontroller.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libretroshare/src/ft/ftcontroller.cc b/libretroshare/src/ft/ftcontroller.cc index f5866177b..473b2f15a 100644 --- a/libretroshare/src/ft/ftcontroller.cc +++ b/libretroshare/src/ft/ftcontroller.cc @@ -174,6 +174,7 @@ void ftController::addFileSource(const std::string& hash,const std::string& peer if(it->first == hash) { it->second->mTransfer->addFileSource(peer_id); + setPeerState(it->second->mTransfer, peer_id, FT_CNTRL_STANDARD_RATE, mLinkMgr->isOnline( peer_id )); #ifdef CONTROL_DEBUG std::cerr << "... added." << std::endl ;