Update spin error message to match function name (#323)
This commit is contained in:
parent
3e6a6d2781
commit
675ad04c76
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ void
|
|||
SingleThreadedExecutor::spin()
|
||||
{
|
||||
if (spinning.exchange(true)) {
|
||||
throw std::runtime_error("spin_some() called while already spinning");
|
||||
throw std::runtime_error("spin() called while already spinning");
|
||||
}
|
||||
RCLCPP_SCOPE_EXIT(this->spinning.store(false); );
|
||||
while (rclcpp::utilities::ok() && spinning.load()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue