mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-26 07:16:11 -05:00
fixed bug in mutexes causing a deadlock in gxs integrity check
This commit is contained in:
parent
8f5656433a
commit
ed5f8618b6
@ -299,12 +299,13 @@ void RsGenExchange::tick()
|
||||
|
||||
if(mIntegrityCheck->isDone())
|
||||
{
|
||||
RS_STACK_MUTEX(mGenMtx) ;
|
||||
|
||||
std::vector<RsGxsGroupId> grpIds;
|
||||
GxsMsgReq msgIds;
|
||||
|
||||
mIntegrityCheck->getDeletedIds(grpIds, msgIds);
|
||||
{
|
||||
RS_STACK_MUTEX(mGenMtx) ;
|
||||
mIntegrityCheck->getDeletedIds(grpIds, msgIds);
|
||||
}
|
||||
|
||||
if(!msgIds.empty())
|
||||
{
|
||||
@ -319,9 +320,12 @@ void RsGenExchange::tick()
|
||||
deleteGroup(token2,grpId);
|
||||
}
|
||||
|
||||
delete mIntegrityCheck;
|
||||
mIntegrityCheck = NULL;
|
||||
mChecking = false;
|
||||
{
|
||||
RS_STACK_MUTEX(mGenMtx) ;
|
||||
delete mIntegrityCheck;
|
||||
mIntegrityCheck = NULL;
|
||||
mChecking = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user