* 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:
drbob 2012-07-31 12:15:58 +00:00
parent 79957e96a9
commit e6c6ed9b91
7 changed files with 11 additions and 10 deletions

View file

@ -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))
{