libresapi: fix empty peers list

This commit is contained in:
electron128 2016-01-31 13:25:28 +01:00
parent b649088b20
commit 22afc8e67b

View File

@ -193,6 +193,8 @@ void PeersHandler::handleWildcard(Request &req, Response &resp)
ok &= mRsPeers->getPeerDetails(*lit, details); ok &= mRsPeers->getPeerDetails(*lit, details);
detailsVec.push_back(details); detailsVec.push_back(details);
} }
// mark response as list, in case it is empty
resp.mDataStream.getStreamToMember();
for(std::list<RsPgpId>::iterator lit = identities.begin(); lit != identities.end(); ++lit) for(std::list<RsPgpId>::iterator lit = identities.begin(); lit != identities.end(); ++lit)
{ {
// if no own ssl id is known, then hide the own id from the friendslist // if no own ssl id is known, then hide the own id from the friendslist