modbus
modbus copied to clipboard
[Fix]: Add nil check in client.Close
This PR checks if the transport
is not nil before closing it in client.Close()
. This avoid panics.