mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
fixed bug that would cause virtual peers list for outgoing files to never get cleanred up. Also improved cost of updating the status of virtual peers. Many thanks to Jolavillette for finding this out!
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6858 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
06f6f1949d
commit
6780ff2cff
3 changed files with 31 additions and 14 deletions
|
@ -1806,9 +1806,6 @@ void ftController::statusChange(const std::list<pqipeer> &plist)
|
|||
std::map<std::string, ftFileControl*>::iterator it;
|
||||
std::list<pqipeer>::const_iterator pit;
|
||||
|
||||
std::list<pqipeer> vlist ;
|
||||
mTurtle->getVirtualPeersList(vlist) ;
|
||||
|
||||
#ifdef CONTROL_DEBUG
|
||||
std::cerr << "ftController::statusChange()";
|
||||
std::cerr << std::endl;
|
||||
|
@ -1856,6 +1853,11 @@ void ftController::statusChange(const std::list<pqipeer> &plist)
|
|||
|
||||
// Now also look at turtle virtual peers.
|
||||
//
|
||||
std::list<pqipeer> vlist ;
|
||||
mTurtle->getSourceVirtualPeersList(it->first,vlist) ;
|
||||
|
||||
std::cerr << "vlist.size() = " << vlist.size() << std::endl;
|
||||
|
||||
for(pit = vlist.begin(); pit != vlist.end(); pit++)
|
||||
{
|
||||
#ifdef CONTROL_DEBUG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue