Переглянути джерело

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;
 }