Skip to content

Commit

Permalink
Fix deadlock
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey committed Apr 19, 2023
1 parent bc1a757 commit 310fb68
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/plugins/camera_tracking/CameraTracking.cc
Original file line number Diff line number Diff line change
Expand Up @@ -251,14 +251,12 @@ bool CameraTrackingPrivate::OnFollow(const msgs::StringMsg &_msg,
/////////////////////////////////////////////////
void CameraTrackingPrivate::OnMoveToComplete()
{
std::lock_guard<std::mutex> lock(this->mutex);
this->moveToTarget.clear();
}

/////////////////////////////////////////////////
void CameraTrackingPrivate::OnMoveToPoseComplete()
{
std::lock_guard<std::mutex> lock(this->mutex);
this->moveToPoseValue.reset();
}

Expand Down

0 comments on commit 310fb68

Please sign in to comment.