浏览代码

OPC UA Clients now disconnect when the program is stopped

thomas 3 年之前
父节点
当前提交
bfbfa696d9
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/ua-stress-test/main.cpp

+ 1 - 0
src/ua-stress-test/main.cpp

@@ -67,6 +67,7 @@ void workerThread()
             return;
         }
     }
+    UA_Client_disconnect(client);
 
     cout << "Thread " << threadId << " terminating" << endl;
 }