From a840551f60893cc76c312f0c7b70ab8b23df04ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergi=20Hern=C3=A0ndez=20Juan?= <shernand@iri.upc.edu> Date: Mon, 2 May 2016 15:55:04 +0000 Subject: [PATCH] Solved a problem that increased the number of errors when two ore more instances of the CCAN object were created in the same process. The internal thread function had an static variable which was shared by all the instances. --- src/can/can.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/can/can.cpp b/src/can/can.cpp index 9329ef4..31fec83 100755 --- a/src/can/can.cpp +++ b/src/can/can.cpp @@ -186,7 +186,7 @@ void CCAN::hard_close(void) void *CCAN::can_thread(void *param) { - static struct can_frame new_frame; + struct can_frame new_frame; std::list<std::string> events; CCAN *can=(CCAN *)param; unsigned int event_id,num; -- GitLab