tests: Stop g_txindex properly (#4205)

This commit is contained in:
UdjinM6 2021-06-24 19:07:28 +03:00 committed by GitHub
parent 9fd284d637
commit 347985a8a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,6 +136,8 @@ TestingSetup::~TestingSetup()
{ {
llmq::InterruptLLMQSystem(); llmq::InterruptLLMQSystem();
llmq::StopLLMQSystem(); llmq::StopLLMQSystem();
g_txindex->Interrupt();
g_txindex->Stop();
g_txindex.reset(); g_txindex.reset();
threadGroup.interrupt_all(); threadGroup.interrupt_all();
threadGroup.join_all(); threadGroup.join_all();