diff --git a/nano/node/node.cpp b/nano/node/node.cpp index 049e940c69..a178ac3676 100644 --- a/nano/node/node.cpp +++ b/nano/node/node.cpp @@ -1559,6 +1559,11 @@ nano::inactive_node::inactive_node (boost::filesystem::path const & path_a, nano { } +nano::inactive_node::~inactive_node () +{ + node_wrapper.node->stop (); +} + nano::node_flags const & nano::inactive_node_flag_defaults () { static nano::node_flags node_flags; diff --git a/nano/node/node.hpp b/nano/node/node.hpp index 870562dc55..6d95f7866a 100644 --- a/nano/node/node.hpp +++ b/nano/node/node.hpp @@ -252,6 +252,7 @@ class inactive_node final public: inactive_node (boost::filesystem::path const & path_a, nano::node_flags const & node_flags_a); inactive_node (boost::filesystem::path const & path_a, boost::filesystem::path const & config_path_a, nano::node_flags const & node_flags_a); + ~inactive_node (); nano::node_wrapper node_wrapper; std::shared_ptr node;