Fix crashing bug on node termination. (#173)
parent
965490f611
commit
d0343919b3
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue