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

Allow stop() even if start() hasnt been called yet, for more graceful degradation.

parent a8fa8fb0
No related branches found
No related tags found
No related merge requests found
......@@ -74,6 +74,10 @@ class OPCUAConnection(Thread):
Stop connecting & disconnect. Can take a few seconds for the timeouts to hit.
"""
if not self.ident:
# have not yet been started, so nothing to do
return
self.stopping = True
self.join()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment