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
Merge pull request #28 from furushchev/fix-system-release-instance-av…
Browse files Browse the repository at this point in the history
…atar

[backport/avatar] Call Spinnaker::System::ReleaseInstance only when no camera is in use
  • Loading branch information
furushchev authored Mar 22, 2021
2 parents 8ae5912 + 9de1b30 commit 977334d
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 977334d

Please sign in to comment.