Kaynağa Gözat

OPC UA Clients now disconnect when the program is stopped

thomas 3 yıl önce
ebeveyn
işleme
bfbfa696d9
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  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;
 }