mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-03 03:36:58 -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
1 changed files with 4 additions and 5 deletions
|
@ -842,7 +842,7 @@ void p3GroupDistrib::locked_publishPendingMsgs()
|
||||||
resave = true;
|
resave = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(store->SendItem(*it)) /* deletes it */
|
if(!store->SendItem(*it)) /* deletes it */
|
||||||
{
|
{
|
||||||
ok &= false;
|
ok &= false;
|
||||||
}
|
}
|
||||||
|
@ -857,7 +857,7 @@ void p3GroupDistrib::locked_publishPendingMsgs()
|
||||||
newCache.recvd = now;
|
newCache.recvd = now;
|
||||||
|
|
||||||
/* cleanup */
|
/* cleanup */
|
||||||
|
mPendingPublish.clear();
|
||||||
delete store;
|
delete store;
|
||||||
|
|
||||||
if(!RsDirUtil::renameFile(filenametmp,filename))
|
if(!RsDirUtil::renameFile(filenametmp,filename))
|
||||||
|
@ -877,10 +877,9 @@ void p3GroupDistrib::locked_publishPendingMsgs()
|
||||||
|
|
||||||
/* push file to CacheSource */
|
/* push file to CacheSource */
|
||||||
|
|
||||||
if(ok){
|
if(ok)
|
||||||
mPendingPublish.clear();
|
|
||||||
refreshCache(newCache);
|
refreshCache(newCache);
|
||||||
}
|
|
||||||
|
|
||||||
if (ok && resave)
|
if (ok && resave)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue