Skip to content

Commit bf50475

Browse files
committed
Fix HTTPControlPlane thread may not be joined
1 parent 12c8787 commit bf50475

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

service/OneService.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,12 +1014,12 @@ class OneServiceImpl : public OneService {
10141014
curl_global_cleanup();
10151015
#endif
10161016

1017-
_controlPlane.stop();
10181017
if (_serverThreadRunning) {
1018+
_controlPlane.stop();
10191019
_serverThread.join();
10201020
}
1021-
_controlPlaneV6.stop();
10221021
if (_serverThreadRunningV6) {
1022+
_controlPlaneV6.stop();
10231023
_serverThreadV6.join();
10241024
}
10251025
_rxPacketVector_m.lock();

0 commit comments

Comments
 (0)