Fix device disconnection after reboot service call 2

This commit is contained in:
xiexun
2025-08-14 08:46:22 +08:00
parent d91db6b639
commit c329964a76
2 changed files with 120 additions and 29 deletions
+3 -1
View File
@@ -111,7 +111,9 @@ OBCameraNodeDriver::~OBCameraNodeDriver() {
reset_device_cond_.notify_all();
reset_device_thread_->join();
}
ob_camera_node_->stopGmslTrigger();
if (ob_camera_node_) {
ob_camera_node_->stopGmslTrigger();
}
if (orb_device_lock_shm_fd_ != -1) {
close(orb_device_lock_shm_fd_);
orb_device_lock_shm_fd_ = -1;