Skip to content

Commit

Permalink
Fix guard condition trigger error
Browse files Browse the repository at this point in the history
  • Loading branch information
DongheeYe committed Nov 16, 2018
1 parent 96d0ed8 commit 65a2390
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rmw_fastrtps_shared_cpp/src/types/guard_condition.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ class GuardCondition
bool
getHasTriggered()
{
std::lock_guard<std::mutex> lock(internalMutex_);
bool ret = hasTriggered_;
hasTriggered_ = false;
return ret;
Expand Down

0 comments on commit 65a2390

Please sign in to comment.