From 0d61dbae7109d976ee581ef9f5acabe5dae23757 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Wo=CC=81jcik?= <3044353+pwojcikdev@users.noreply.github.com> Date: Sun, 17 Mar 2024 10:21:56 +0100 Subject: [PATCH] Stop network component last --- nano/node/node.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nano/node/node.cpp b/nano/node/node.cpp index 43d2b87ac6..054e3669f7 100644 --- a/nano/node/node.cpp +++ b/nano/node/node.cpp @@ -684,7 +684,6 @@ void nano::node::stop () generator.stop (); final_generator.stop (); confirmation_height_processor.stop (); - network.stop (); telemetry.stop (); websocket.stop (); bootstrap_server.stop (); @@ -696,6 +695,8 @@ void nano::node::stop () epoch_upgrader.stop (); workers.stop (); local_block_broadcaster.stop (); + network.stop (); // Stop network last to avoid killing in-use sockets + // work pool is not stopped on purpose due to testing setup }