pymodbus-dev / pymodbus

A full modbus protocol written in python
Other
2.29k stars 938 forks source link

Do not attempt to close an already-closed serial connection #1853

Closed alexrudd2 closed 1 year ago

alexrudd2 commented 1 year ago

For some reason close() calls connection_lost()... which calls close().

Closes #1847, but I'm not sure if this is the best approach.