Fix one case where we stop acquiring historical ledgers after a failure.

This commit is contained in:
JoelKatz
2013-01-04 12:13:58 -08:00
parent c5cda1abfe
commit e683f92844

View File

@@ -290,7 +290,11 @@ void LedgerMaster::setFullLedger(Ledger::ref ledger)
}
if (mMissingLedger && mMissingLedger->isDone())
{
if (mMissingLedger->isFailed())
theApp->getMasterLedgerAcquire().dropLedger(mMissingLedger->getHash());
mMissingLedger.reset();
}
if (mMissingLedger || !theConfig.LEDGER_HISTORY)
{