Skip to content

Commit

Permalink
Merge pull request #216 from ros-drivers/maint/poll_timeout_handling
Browse files Browse the repository at this point in the history
Testing reporting error instead of stopping node on disconnect.
  • Loading branch information
Joshua Whitley committed Feb 18, 2019
2 parents 16bc0c3 + 7dcd5fa commit 5e02d34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion velodyne_driver/src/driver/nodelet.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void DriverNodelet::devicePoll()
// poll device until end of file
running_ = dvr_->poll();
if (!running_)
break;
ROS_ERROR_THROTTLE(1.0, "DriverNodelet::devicePoll - Failed to poll device.");
}
running_ = false;
}
Expand Down

0 comments on commit 5e02d34

Please sign in to comment.