Skip to content

Commit

Permalink
set SecureChannel nil in Close() method
Browse files Browse the repository at this point in the history
  • Loading branch information
hotafrika committed Aug 11, 2022
1 parent 5102686 commit 28b54ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ func (c *Client) CloseWithContext(ctx context.Context) error {
}
if c.SecureChannel() != nil {
c.SecureChannel().Close()
c.setSecureChannel(nil)
}

// https://github.com/gopcua/opcua/pull/462
Expand Down

0 comments on commit 28b54ca

Please sign in to comment.