A few more fixes.

This commit is contained in:
JoelKatz
2013-08-11 22:21:48 -07:00
parent 9a1e7e69c2
commit 8b06891663
4 changed files with 26 additions and 15 deletions

View File

@@ -257,12 +257,15 @@ void InboundLedgers::gotFetchPack (Job&)
acquires.push_back (it.second);
}
bool progress = false;
BOOST_FOREACH (const InboundLedger::pointer & acquire, acquires)
{
acquire->checkLocal ();
if (acquire->checkLocal ())
progress = true;
}
getApp().getLedgerMaster().tryAdvance();
if (progress)
getApp().getLedgerMaster().tryAdvance();
}
void InboundLedgers::clearFailures ()