fix(inputs.opcua): Reconnect if closed connection (#15696)

This commit is contained in:
Joshua Powers 2024-07-31 13:34:44 -06:00 committed by GitHub
parent a978110b2c
commit b090cf621c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ func (o *ReadClient) Connect() error {
}
func (o *ReadClient) ensureConnected() error {
if o.State() == opcua.Disconnected {
if o.State() == opcua.Disconnected || o.State() == opcua.Closed {
return o.Connect()
}
return nil