fixed stop cause crash

This commit is contained in:
Joe Dong
2023-10-13 21:40:32 +08:00
parent ab77864452
commit 6d397e3e3a
3 changed files with 5 additions and 4 deletions
@@ -310,6 +310,7 @@ void OBCameraNodeDriver::initializeDevice(const std::shared_ptr<ob::Device> &dev
}
ob_camera_node_ = std::make_unique<OBCameraNode>(this, device_, parameters_);
ob_camera_node_->startStreams();
ob_camera_node_->startIMU();
device_connected_ = true;
device_info_ = device_->getDeviceInfo();
CHECK_NOTNULL(device_info_.get());