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

Solved a bug when calling the close() function recursively.

parent f1f5e143
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
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