mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix deadlock.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user