Skip to content

Commit

Permalink
Fix segfault if servo collision checking is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
schornakj committed Jul 23, 2021
1 parent faee9a4 commit 755b321
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ class CollisionCheck

~CollisionCheck()
{
timer_->cancel();
if (timer_)
{
timer_->cancel();
}
}

/** \brief start the Timer that regulates collision check rate */
Expand Down

0 comments on commit 755b321

Please sign in to comment.