Stop must be called within ~backlog_population. If the system is destroyed and nodes have not been explicitly stopped, for instance in a test case failure, this would leave the backlog thread running.

This commit is contained in:
clemahieu 2023-01-19 08:39:37 +00:00
commit 8ffbcaca5c

View file

@ -13,6 +13,7 @@ nano::backlog_population::backlog_population (const config & config_a, nano::sto
nano::backlog_population::~backlog_population ()
{
stop ();
// Thread must be stopped before destruction
debug_assert (!thread.joinable ());
}