mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 00:49:28 -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
@ -455,10 +455,11 @@ void PostedListDialog::requestGroupThreadData_InsertThreads(const std::string &g
|
||||
//mPostedQueue->requestMsgInfo(token, RS_TOKREQ_ANSTYPE_DATA, opts, grpIds, POSTEDDIALOG_INSERTTHREADS);
|
||||
|
||||
// Do specific Posted Request....
|
||||
rsPosted->requestRanking(token, groupId);
|
||||
if (rsPosted->requestRanking(token, groupId))
|
||||
{
|
||||
// get the Queue to handle response.
|
||||
mPostedQueue->queueRequest(token, TOKENREQ_MSGINFO, RS_TOKREQ_ANSTYPE_DATA, POSTEDDIALOG_INSERTTHREADS);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include <retroshare/rsforumsV2.h>
|
||||
#include <retroshare/rsforumsv2.h>
|
||||
#include <retroshare/rspeers.h>
|
||||
|
||||
#include <iostream>
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include <QDropEvent>
|
||||
#include <QPushButton>
|
||||
|
||||
#include <retroshare/rsforumsV2.h>
|
||||
#include <retroshare/rsforumsv2.h>
|
||||
#include <retroshare/rspeers.h>
|
||||
|
||||
#include "gui/settings/rsharesettings.h"
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
#include "EditForumV2Details.h"
|
||||
|
||||
#include <retroshare/rsforumsV2.h>
|
||||
#include <retroshare/rsforumsv2.h>
|
||||
|
||||
#include "util/misc.h"
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include <retroshare/rsiface.h>
|
||||
#include <retroshare/rspeers.h>
|
||||
#include <retroshare/rsdisc.h>
|
||||
#include <retroshare/rsforumsV2.h>
|
||||
#include <retroshare/rsforumsv2.h>
|
||||
|
||||
#include <QTime>
|
||||
#include <QDateTime>
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
#include "ForumV2GroupDialog.h"
|
||||
|
||||
#include <retroshare/rsforumsV2.h>
|
||||
#include <retroshare/rsforumsv2.h>
|
||||
#include <iostream>
|
||||
|
||||
ForumV2GroupDialog::ForumV2GroupDialog(QWidget *parent)
|
||||
|
@ -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…
Reference in New Issue
Block a user