Fix chainlock scheduler handling (#3514)

Reindexing corrupted chain always fails otherwise.
This commit is contained in:
UdjinM6 2020-06-11 11:39:23 +03:00 committed by GitHub
parent 469d6aa737
commit 89851d3361
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)