Clear sub contexts when starting another init-shutdown cycle (#947)
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
This commit is contained in:
parent
fd3655c26c
commit
914ea81c63
1 changed files with 1 additions and 0 deletions
|
@ -311,6 +311,7 @@ Context::clean_up()
|
|||
{
|
||||
shutdown_reason_ = "";
|
||||
rcl_context_.reset();
|
||||
sub_contexts_.clear();
|
||||
}
|
||||
|
||||
std::vector<Context::SharedPtr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue