mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix an endless loop.
This commit is contained in:
@@ -827,7 +827,10 @@ void LedgerAcquireMaster::sweep()
|
||||
while (it != mLedgers.end())
|
||||
{
|
||||
if (it->second->getLastAction() > now)
|
||||
{
|
||||
it->second->touch();
|
||||
++it;
|
||||
}
|
||||
else if ((it->second->getLastAction() + 60) < now)
|
||||
mLedgers.erase(it++);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user