mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
shutdown: Destroy kernel last
Currently the shutdown function resets the kernel before the chainman and scheduler. Invert this order by resetting the kernel last, since they might rely on the kernel.
This commit is contained in:
parent
44b05bf3fe
commit
9759af17ff
1 changed files with 1 additions and 1 deletions
|
@ -341,11 +341,11 @@ void Shutdown(NodeContext& node)
|
|||
node.chain_clients.clear();
|
||||
UnregisterAllValidationInterfaces();
|
||||
GetMainSignals().UnregisterBackgroundSignalScheduler();
|
||||
node.kernel.reset();
|
||||
node.mempool.reset();
|
||||
node.fee_estimator.reset();
|
||||
node.chainman.reset();
|
||||
node.scheduler.reset();
|
||||
node.kernel.reset();
|
||||
|
||||
try {
|
||||
if (!fs::remove(GetPidFile(*node.args))) {
|
||||
|
|
Loading…
Reference in a new issue