mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-29 09:26:18 -05:00
reverted unnecessary cancel of tokens after waitToken in p3gxscircles
This commit is contained in:
parent
a02bb0acb6
commit
230eca985f
@ -279,9 +279,12 @@ 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);
|
||||
|
||||
return getGroupSummary(token, circles);
|
||||
{
|
||||
std::cerr << "Cannot get circles summary. Token queue is overloaded?" << std::endl;
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return getGroupSummary(token, circles);
|
||||
}
|
||||
|
||||
bool p3GxsCircles::getCirclesInfo( const std::list<RsGxsGroupId>& circlesIds,
|
||||
@ -291,9 +294,12 @@ 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;
|
||||
|
||||
return getGroupData(token, circlesInfo);
|
||||
}
|
||||
else
|
||||
return getGroupData(token, circlesInfo);
|
||||
}
|
||||
|
||||
bool p3GxsCircles::getCircleRequests( const RsGxsGroupId& circleId,
|
||||
|
Loading…
Reference in New Issue
Block a user