mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
refactor: immediately update lastCleanupTime
This commit is contained in:
parent
d0d2641154
commit
04ba164064
@ -619,6 +619,7 @@ void CChainLocksHandler::Cleanup()
|
||||
if (GetTimeMillis() - lastCleanupTime < CLEANUP_INTERVAL) {
|
||||
return;
|
||||
}
|
||||
lastCleanupTime = GetTimeMillis();
|
||||
|
||||
{
|
||||
LOCK(cs);
|
||||
@ -665,8 +666,6 @@ void CChainLocksHandler::Cleanup()
|
||||
++it;
|
||||
}
|
||||
}
|
||||
|
||||
lastCleanupTime = GetTimeMillis();
|
||||
}
|
||||
|
||||
bool AreChainLocksEnabled(const CSporkManager& sporkman)
|
||||
|
Loading…
Reference in New Issue
Block a user