Fix deadlock.

This commit is contained in:
JoelKatz
2012-09-05 10:18:23 -07:00
parent 1dfdf8e9d8
commit 7a300f6c7b

View File

@@ -177,8 +177,9 @@ void ValidationCollection::addDeadLedger(const uint256& ledger)
{
boost::mutex::scoped_lock sl(mValidationLock);
if (isDeadLedger(ledger))
return;
BOOST_FOREACH(const uint256& it, mDeadLedgers)
if (it == ledger)
return;
mDeadLedgers.push_back(ledger);
if (mDeadLedgers.size() >= 32)