mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-29 11:56:37 -05:00
* Fixed Nasty Bug: Double Increment in TokenQueue list iteration => infinite Loop.
* Corrected header file names. * Only queue TokenRequest if RankingRequest returns true. git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5363 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
79957e96a9
commit
e6c6ed9b91
7 changed files with 11 additions and 10 deletions
|
|
@ -104,7 +104,7 @@ void TokenQueue::pollRequests()
|
|||
std::list<TokenRequest>::iterator it;
|
||||
|
||||
double pollPeriod = 1.0; // max poll period.
|
||||
for(it = mRequests.begin(); it != mRequests.end(); it++)
|
||||
for(it = mRequests.begin(); it != mRequests.end();)
|
||||
{
|
||||
if (checkForRequest(it->mToken))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue