Modbus: close connection when unregistering (#28034)
This commit is contained in:
parent
b77358183a
commit
1ea07c6dba
1 changed files with 1 additions and 0 deletions
|
|
@ -88,6 +88,7 @@ func unregisterConnection(key string) {
|
|||
return
|
||||
}
|
||||
|
||||
conn.Close()
|
||||
delete(connections, key)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue