* 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

@ -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);
// get the Queue to handle response.
mPostedQueue->queueRequest(token, TOKENREQ_MSGINFO, RS_TOKREQ_ANSTYPE_DATA, POSTEDDIALOG_INSERTTHREADS);
if (rsPosted->requestRanking(token, groupId))
{
// get the Queue to handle response.
mPostedQueue->queueRequest(token, TOKENREQ_MSGINFO, RS_TOKREQ_ANSTYPE_DATA, POSTEDDIALOG_INSERTTHREADS);
}
}

View file

@ -27,7 +27,7 @@
#include <algorithm>
#include <retroshare/rsforumsV2.h>
#include <retroshare/rsforumsv2.h>
#include <retroshare/rspeers.h>
#include <iostream>

View file

@ -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"

View file

@ -21,7 +21,7 @@
#include "EditForumV2Details.h"
#include <retroshare/rsforumsV2.h>
#include <retroshare/rsforumsv2.h>
#include "util/misc.h"

View file

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

View file

@ -21,7 +21,7 @@
#include "ForumV2GroupDialog.h"
#include <retroshare/rsforumsV2.h>
#include <retroshare/rsforumsv2.h>
#include <iostream>
ForumV2GroupDialog::ForumV2GroupDialog(QWidget *parent)