bitcoin-chainstate: Lock cs_main to UnloadBlockIndex

This was introduced because of a silent merge conflict.
This commit is contained in:
Carl Dong 2022-03-08 16:12:01 -05:00
parent b07fdd7f9e
commit 7a68fe4831

View file

@ -256,7 +256,7 @@ epilogue:
}
GetMainSignals().UnregisterBackgroundSignalScheduler();
UnloadBlockIndex(nullptr, chainman);
WITH_LOCK(::cs_main, UnloadBlockIndex(nullptr, chainman));
init::UnsetGlobals();
}