Skip to content
Snippets Groups Projects
Commit b3f055e9 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Removed the reference to the CException class from iriutils.

parent 6047f501
No related branches found
No related tags found
No related merge requests found
......@@ -24,10 +24,6 @@
#include <diagnostic_updater/diagnostic_updater.h>
#include "iri_base_driver.h"
// iri-utils thread server
#include "threadserver.h"
#include "exceptions.h"
namespace iri_base_driver
{
......@@ -356,17 +352,10 @@ template <class Driver>
IriBaseNodeDriver<Driver>::~IriBaseNodeDriver()
{
ROS_DEBUG("IriBaseNodeDriver::Destrcutor");
try
{
//try access to driver to assert it is
//unlock before its destruction
this->driver_.try_enter();
this->driver_.unlock();
}
catch(CException e)
{
std::cout << e.what() << std::endl;
}
//try access to driver to assert it is
//unlock before its destruction
this->driver_.try_enter();
this->driver_.unlock();
this->driver_.close();
pthread_cancel(this->thread);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment