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:
parent
0765ce3de3
commit
8ffbcaca5c
1 changed files with 1 additions and 0 deletions
|
@ -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 ());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue