Browse Source

OPC UA Clients now disconnect when the program is stopped

thomas 3 years ago
parent
commit
bfbfa696d9
1 changed files with 1 additions and 0 deletions
  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;
 }