Skip to content
Snippets Groups Projects
Commit 846e9465 authored by Jan David Mol's avatar Jan David Mol
Browse files

Removed superfluous _disconnect member function

parent da3a4aab
Branches
Tags
No related merge requests found
...@@ -392,15 +392,6 @@ class RCUSCC(Device): ...@@ -392,15 +392,6 @@ class RCUSCC(Device):
# PROTECTED REGION ID(RCUSCC.always_executed_hook) ENABLED START # # PROTECTED REGION ID(RCUSCC.always_executed_hook) ENABLED START #
# PROTECTED REGION END # // RCUSCC.always_executed_hook # PROTECTED REGION END # // RCUSCC.always_executed_hook
def _disconnect(self):
try:
if self.client is not None:
self.client.disconnect()
except Exception as e:
self.warn_stream("Disconnect from OPC-UA server %s:%d failed. Trace: %s" % (self.OPC_Server_Name, self.OPC_Server_Port, traceback.format_exc()))
finally:
self.client = None
def delete_device(self): def delete_device(self):
"""Hook to delete resources allocated in init_device. """Hook to delete resources allocated in init_device.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment