Skip to content

Commit

Permalink
Must call p2p::close() before stopping chasers.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Oct 23, 2024
1 parent 2445ea7 commit a3b8682
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/full_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ void full_node::do_run(const result_handler& handler) NOEXCEPT

void full_node::close() NOEXCEPT
{
// Base (p2p) invokes do_close().
p2p::close();

// Block on chaser stop (including dedicated threadpool joins).
chaser_header_.stop();
chaser_block_.stop();
Expand All @@ -132,9 +135,6 @@ void full_node::close() NOEXCEPT
chaser_template_.stop();
chaser_snapshot_.stop();
chaser_storage_.stop();

// Base (p2p) invokes do_close().
p2p::close();
}

// Base (p2p) invokes do_close().
Expand Down

0 comments on commit a3b8682

Please sign in to comment.