소스 검색

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