mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
no need to drop an entire config file when a single item cannot be serialized.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6548 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
379aece9b0
commit
a570f66e79
@ -383,12 +383,11 @@ bool pqiSSLstore::encryptedSendItems(const std::list<RsItem*>& rsItemList)
|
||||
for(it = rsItemList.begin(); it != rsItemList.end(); it++)
|
||||
{
|
||||
sizeItem = rsSerialiser->size(*it);
|
||||
if(!rsSerialiser->serialise(*it, (data+offset),&sizeItem))
|
||||
{
|
||||
std::cerr << "(EE) pqiSSLstore::encryptedSendItems(): One item did not serialize. sizeItem=" << sizeItem << ". Dropping the entire file. " << std::endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
if(rsSerialiser->serialise(*it, (data+offset),&sizeItem))
|
||||
offset += sizeItem;
|
||||
else
|
||||
std::cerr << "(EE) pqiSSLstore::encryptedSendItems(): One item did not serialize. The item is probably unknown from the serializer. Dropping the item. " << std::endl;
|
||||
|
||||
if (!(bio_flags & BIN_FLAGS_NO_DELETE))
|
||||
delete *it;
|
||||
|
Loading…
Reference in New Issue
Block a user