mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-28 08:07:31 -04:00
reverted unnecessary cancel of tokens after waitToken in p3gxscircles
This commit is contained in:
parent
a02bb0acb6
commit
230eca985f
1 changed files with 11 additions and 5 deletions
|
@ -279,8 +279,11 @@ bool p3GxsCircles::getCirclesSummaries(std::list<RsGroupMetaData>& circles)
|
|||
RsTokReqOptions opts;
|
||||
opts.mReqType = GXS_REQUEST_TYPE_GROUP_META;
|
||||
if( !requestGroupInfo(token, opts) || waitToken(token) != RsTokenService::COMPLETE )
|
||||
cancelRequest(token);
|
||||
|
||||
{
|
||||
std::cerr << "Cannot get circles summary. Token queue is overloaded?" << std::endl;
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return getGroupSummary(token, circles);
|
||||
}
|
||||
|
||||
|
@ -291,8 +294,11 @@ bool p3GxsCircles::getCirclesInfo( const std::list<RsGxsGroupId>& circlesIds,
|
|||
RsTokReqOptions opts;
|
||||
opts.mReqType = GXS_REQUEST_TYPE_GROUP_DATA;
|
||||
if( !requestGroupInfo(token, opts, circlesIds) || waitToken(token) != RsTokenService::COMPLETE )
|
||||
{
|
||||
std::cerr << "Cannot get circle info. Token queue is overloaded?" << std::endl;
|
||||
return false;
|
||||
|
||||
}
|
||||
else
|
||||
return getGroupData(token, circlesInfo);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue