This pull request addresses the double error printing problem mentioned in #4.
Fixed this by rearranging how multithreading works: now there are three threads, one for connection handling and two for communication with the PLC.
After the changes were made I tested the IOC with -fsanitize=thread and didn't find any problems.
This pull request addresses the double error printing problem mentioned in #4. Fixed this by rearranging how multithreading works: now there are three threads, one for connection handling and two for communication with the PLC.
After the changes were made I tested the IOC with
-fsanitize=thread
and didn't find any problems.