diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index f64b29c1f..90a6d4332 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -686,6 +686,10 @@ namespace nodetool template bool node_server::send_stop_signal() { + MDEBUG("[node] sending stop signal"); + m_net_server.send_stop_signal(); + MDEBUG("[node] Stop signal sent"); + std::list connection_ids; m_net_server.get_config_object().foreach_connection([&](const p2p_connection_context& cntxt) { connection_ids.push_back(cntxt.m_connection_id); @@ -695,8 +699,7 @@ namespace nodetool m_net_server.get_config_object().close(connection_id); m_payload_handler.stop(); - m_net_server.send_stop_signal(); - MDEBUG("[node] Stop signal sent"); + return true; } //-----------------------------------------------------------------------------------