mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-04 12:07:46 +08:00
Fix device connection loop condition
This commit is contained in:
@@ -165,7 +165,7 @@ void OBCameraNodeDriver::checkConnectTimer() {
|
||||
}
|
||||
|
||||
void OBCameraNodeDriver::queryDevice() {
|
||||
while (rclcpp::ok() && !device_connected_.load()) {
|
||||
while (rclcpp::ok() && is_alive_ && !device_connected_.load()) {
|
||||
if (!net_device_ip_.empty() && net_device_port_ != 0) {
|
||||
connectNetDevice(net_device_ip_, net_device_port_);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user