Don't let ledger fetching go too fast.

This commit is contained in:
JoelKatz
2013-03-12 15:17:26 -07:00
parent 0b52905cb7
commit e9a02882f1
4 changed files with 13 additions and 4 deletions

View File

@@ -512,7 +512,7 @@ void Ledger::saveAcceptedLedger(Job&, bool fromConsensus)
if (!fromConsensus)
dropCache();
if (theApp->getJobQueue().getJobCount(jtPUBOLDLEDGER) == 0)
if (theApp->getJobQueue().getJobCountTotal(jtPUBOLDLEDGER) == 0)
theApp->getLedgerMaster().resumeAcquiring();
}