plcpeople / nodeS7

Node.JS library for communication to Siemens S7 PLCs
MIT License
363 stars 122 forks source link

.dropConnection callback is fired to early #116

Open AMooshofer opened 4 years ago

AMooshofer commented 4 years ago

I got an issue when terminating the connection to a plc. After calling .dropConnection i get the callback to early, when looking at the log without silent mode you can see the callback is called, before it terminates the connection. When i wanna build a new connection afterwards i get all kinds of different errors. I found a way around this issue: when calling .connectionCleanup in the callback it terminates completely and a new connection is possible.