From 8b870cd259e4a7435b370e77396bee79bde41366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergi=20Hern=C3=A0ndez=20Juan?= <shernand@iri.upc.edu> Date: Tue, 29 Mar 2016 09:54:05 +0000 Subject: [PATCH] Solved a bug when calling the close() function recursively. --- src/can/can.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/can/can.cpp b/src/can/can.cpp index 7294035..9329ef4 100755 --- a/src/can/can.cpp +++ b/src/can/can.cpp @@ -397,13 +397,13 @@ void CCAN::clear_id_filters(void) void CCAN::close(void) { if(this->can_socket_fd!=-1) - this->close(); + CComm::close(); } CCAN::~CCAN() { // close the can device if(this->can_socket_fd!=-1) - this->close(); + CComm::close(); } -- GitLab