Fix crashing bug on node termination. (#173)

master
Wolfgang Hess 2016-11-17 17:02:27 +01:00 committed by GitHub
parent 965490f611
commit d0343919b3
1 changed files with 1 additions and 0 deletions

View File

@ -165,6 +165,7 @@ Node::~Node() {
{ {
carto::common::MutexLocker lock(&mutex_); carto::common::MutexLocker lock(&mutex_);
terminating_ = true; terminating_ = true;
map_builder_.FinishTrajectory(trajectory_id_);
} }
if (occupancy_grid_thread_.joinable()) { if (occupancy_grid_thread_.joinable()) {
occupancy_grid_thread_.join(); occupancy_grid_thread_.join();