Skip to content

Commit

Permalink
race condition fix for Localization2D_nws_ros2
Browse files Browse the repository at this point in the history
  • Loading branch information
randaz81 committed Aug 22, 2023
1 parent f7b48b9 commit 83882bd
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@ bool Localization2D_nws_ros2::open(yarp::os::Searchable &config)

bool Localization2D_nws_ros2::close()
{
yCTrace(LOCALIZATION2D_NWS_ROS2);
if (PeriodicThread::isRunning())
{
PeriodicThread::stop();
}

detach();
return true;
}
Expand Down

0 comments on commit 83882bd

Please sign in to comment.