Skip to content

Commit

Permalink
turn error into warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Sep 15, 2016
1 parent 34e84df commit a0c78a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion clients/roscpp/src/libros/spinner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@ struct SpinnerMonitor
ROS_ASSERT_MSG(it != spinning_queues_.end(), "Call to SpinnerMonitor::remove() without matching call to add().");

if (it->second.tid != boost::thread::id() && it->second.tid != boost::this_thread::get_id())
ROS_ERROR("SpinnerMonitor::remove() called from different thread than add().");
{
// This doesn't harm, but isn't good practice?
// It was enforced by the previous implementation.
ROS_WARN("SpinnerMonitor::remove() called from different thread than add().");
}

if (single_threaded)
spinning_queues_.erase(it);
Expand Down

0 comments on commit a0c78a0

Please sign in to comment.