mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Cleanup thread creation.
This commit is contained in:
@@ -1167,9 +1167,8 @@ void Ledger::pendSave(bool fromConsensus)
|
||||
if (!fromConsensus && !theApp->isNewFlag(getHash(), SF_SAVED))
|
||||
return;
|
||||
|
||||
boost::thread thread(boost::bind(&Ledger::saveAcceptedLedger, shared_from_this(),
|
||||
fromConsensus, theApp->getJobQueue().getLoadEvent(jtDISK)));
|
||||
thread.detach();
|
||||
boost::thread(boost::bind(&Ledger::saveAcceptedLedger, shared_from_this(),
|
||||
fromConsensus, theApp->getJobQueue().getLoadEvent(jtDISK))).detach();
|
||||
|
||||
boost::recursive_mutex::scoped_lock sl(sPendingSaveLock);
|
||||
++sPendingSaves;
|
||||
|
||||
Reference in New Issue
Block a user