mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-04-10 09:49:24 -04:00
still have to clean pending pub msgs and pointer deleted when sent.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3205 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
10353bb129
commit
673369371a
@ -842,7 +842,7 @@ void p3GroupDistrib::locked_publishPendingMsgs()
|
||||
resave = true;
|
||||
}
|
||||
|
||||
if(store->SendItem(*it)) /* deletes it */
|
||||
if(!store->SendItem(*it)) /* deletes it */
|
||||
{
|
||||
ok &= false;
|
||||
}
|
||||
@ -857,7 +857,7 @@ void p3GroupDistrib::locked_publishPendingMsgs()
|
||||
newCache.recvd = now;
|
||||
|
||||
/* cleanup */
|
||||
|
||||
mPendingPublish.clear();
|
||||
delete store;
|
||||
|
||||
if(!RsDirUtil::renameFile(filenametmp,filename))
|
||||
@ -877,10 +877,9 @@ void p3GroupDistrib::locked_publishPendingMsgs()
|
||||
|
||||
/* push file to CacheSource */
|
||||
|
||||
if(ok){
|
||||
mPendingPublish.clear();
|
||||
if(ok)
|
||||
refreshCache(newCache);
|
||||
}
|
||||
|
||||
|
||||
if (ok && resave)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user