Skip to content

Commit 8014421

Browse files
committed
Fix HTTPControlPlane thread may not be joined
1 parent cf899ac commit 8014421

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

service/OneService.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,11 +1016,11 @@ class OneServiceImpl : public OneService {
10161016
#endif
10171017

10181018
_controlPlane.stop();
1019-
if (_serverThreadRunning) {
1019+
if (_serverThread.joinable()) {
10201020
_serverThread.join();
10211021
}
10221022
_controlPlaneV6.stop();
1023-
if (_serverThreadRunningV6) {
1023+
if (_serverThreadV6.joinable()) {
10241024
_serverThreadV6.join();
10251025
}
10261026
_rxPacketVector_m.lock();

0 commit comments

Comments
 (0)