simonvetter / modbus

Go modbus stack (client and server)
MIT License
280 stars 89 forks source link

[Fix]: Add nil check in Close function #35

Closed NiklasCi closed 1 year ago

NiklasCi commented 1 year ago

This PR just adds a simple check in the client.Close() function to avoid panic if transport is nil.