Skip to content

Commit ce5e734

Browse files
brubbeloroulet
authored andcommitted
warning message on failure of close_secure_channel()
1 parent 85a4fcc commit ce5e734

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

opcua/client/ua_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ def close_secure_channel(self):
201201
except OSError as exc:
202202
raise
203203
if exc.errno == errno.EBADF:
204+
self.logger.warning("close_secure_channel() failed: socket already closed")
204205
pass # Socket is closed, so can't send SecureClose request.
205206
else:
206207
raise

0 commit comments

Comments
 (0)