Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

Commit

Permalink
Call Spinnaker::System::ReleaseInstance only when no camera is in use
Browse files Browse the repository at this point in the history
  • Loading branch information
furushchev committed Mar 22, 2021
1 parent 8ae5912 commit 9de1b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spinnaker_camera_driver/src/SpinnakerCamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ SpinnakerCamera::SpinnakerCamera()
SpinnakerCamera::~SpinnakerCamera()
{
camList_.Clear();
system_->ReleaseInstance();
if (!system_->IsInUse()) system_->ReleaseInstance();
}

void SpinnakerCamera::setNewConfiguration(spinnaker_camera_driver::SpinnakerConfig& config, const uint32_t& level)
Expand Down

0 comments on commit 9de1b30

Please sign in to comment.