mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 08:59:37 -05:00
added test against empty circles
This commit is contained in:
parent
9ddef9e45b
commit
3c2c1df245
@ -3568,6 +3568,12 @@ bool RsGxsNetService::encryptSingleNxsItem(RsNxsItem *item, const RsGxsCircleId&
|
||||
status = RS_NXS_ITEM_ENCRYPTION_STATUS_CIRCLE_ERROR ;
|
||||
return false ;
|
||||
}
|
||||
|
||||
if(recipients.empty())
|
||||
{
|
||||
std::cerr << " (EE) No recipients found for circle " << destination_circle << ". Circle not in cache, or empty circle?" << std::endl;
|
||||
return false ;
|
||||
}
|
||||
|
||||
#ifdef NXS_NET_DEBUG_7
|
||||
GXSNETDEBUG_P_ (item->PeerId()) << " Dest Ids: " << std::endl;
|
||||
|
Loading…
Reference in New Issue
Block a user