Skip to content

Commit

Permalink
fix(behavior_path_planner): unsafe mutex operation (tier4#1005)
Browse files Browse the repository at this point in the history
Signed-off-by: NorahXiong <norah.xiong@autocore.ai>
  • Loading branch information
NorahXiong authored and boyali committed Sep 28, 2022
1 parent 019cbf6 commit b150dcd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,8 @@ void BehaviorPathPlannerNode::run()

// behavior_path_planner runs only in LANE DRIVING scenario.
if (current_scenario_->current_scenario != Scenario::LANEDRIVING) {
mutex_bt_.unlock(); // for bt_manager_
mutex_pd_.unlock(); // for planner_data_
return;
}

Expand Down

0 comments on commit b150dcd

Please sign in to comment.