mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
Fix chainlock scheduler handling (#3514)
Reindexing corrupted chain always fails otherwise.
This commit is contained in:
parent
469d6aa737
commit
89851d3361
@ -42,6 +42,8 @@ CChainLocksHandler::CChainLocksHandler()
|
||||
|
||||
CChainLocksHandler::~CChainLocksHandler()
|
||||
{
|
||||
scheduler_thread->interrupt();
|
||||
scheduler_thread->join();
|
||||
delete scheduler_thread;
|
||||
delete scheduler;
|
||||
}
|
||||
@ -59,9 +61,8 @@ void CChainLocksHandler::Start()
|
||||
|
||||
void CChainLocksHandler::Stop()
|
||||
{
|
||||
scheduler->stop();
|
||||
quorumSigningManager->UnregisterRecoveredSigsListener(this);
|
||||
scheduler_thread->interrupt();
|
||||
scheduler_thread->join();
|
||||
}
|
||||
|
||||
bool CChainLocksHandler::AlreadyHave(const CInv& inv)
|
||||
|
Loading…
Reference in New Issue
Block a user