Преглед изворни кода

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