From f11839642178fb89fe64242edbde77101df03b53 Mon Sep 17 00:00:00 2001 From: Sergi Hernandez Juan <shernand@iri.upc.edu> Date: Mon, 6 Jul 2020 13:57:29 +0200 Subject: [PATCH] Removed the exception throw in the destructor. --- src/firewirecamera.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/firewirecamera.cpp b/src/firewirecamera.cpp index d86d104..c4d13e0 100644 --- a/src/firewirecamera.cpp +++ b/src/firewirecamera.cpp @@ -1769,16 +1769,8 @@ int CFirewireCamera::get_num_DMA_buffers(void) CFirewireCamera::~CFirewireCamera() { - dc1394error_t error; - DEBUG_INFO("Stoping the image acquisition ... "); - error = dc1394_capture_stop(this->camera_handle); - if( error != DC1394_SUCCESS) - { - DEBUG_INFO("failed\n"); - /* handle the error */ - throw CFirewireInternalException(_HERE_,error); - } + dc1394_capture_stop(this->camera_handle); DEBUG_INFO("ok\n"); /* destroy the thread */ if ( this->one_shot_mode == DC1394_OFF ) -- GitLab