diff --git a/commonLibs/livoxProto1/udpCommandDemuxer.cpp b/commonLibs/livoxProto1/udpCommandDemuxer.cpp index b8e6330..453e47d 100644 --- a/commonLibs/livoxProto1/udpCommandDemuxer.cpp +++ b/commonLibs/livoxProto1/udpCommandDemuxer.cpp @@ -43,9 +43,10 @@ void UdpCommandDemuxer::start() try { - setupSockets(); { smo::SpinLock::Guard lock(isActiveAndShouldStopLock); + + setupSockets(); isActive.store(true); shouldStop.store(false); }