reverted unnecessary cancel of tokens after waitToken in p3gxscircles

This commit is contained in:
csoler 2020-03-11 22:42:34 +01:00
parent a02bb0acb6
commit 230eca985f
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -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);
}