Clear sub contexts when starting another init-shutdown cycle (#947)

Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
This commit is contained in:
Ivan Santiago Paunovic 2020-01-03 09:55:11 -03:00 committed by GitHub
parent fd3655c26c
commit 914ea81c63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -311,6 +311,7 @@ Context::clean_up()
{
shutdown_reason_ = "";
rcl_context_.reset();
sub_contexts_.clear();
}
std::vector<Context::SharedPtr>