We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00a1404 commit a4bba7aCopy full SHA for a4bba7a
1 file changed
opcua/client/ua_client.py
@@ -150,6 +150,7 @@ def disconnect_socket(self):
150
self.logger.info("Socket closed, waiting for receiver thread to terminate...")
151
if self._thread and self._thread.is_alive():
152
self._thread.join()
153
+ self._callbackmap.clear()
154
self.logger.info("Done closing socket: Receiving thread terminated, socket disconnected")
155
156
def send_hello(self, url, max_messagesize=0, max_chunkcount=0):
@@ -190,7 +191,6 @@ def close_secure_channel(self):
190
191
with self._lock:
192
# don't expect any more answers
193
future.cancel()
- self._callbackmap.clear()
194
195
# some servers send a response here, most do not ... so we ignore
196
0 commit comments