diff --git a/services/src/client_info.cpp b/services/src/client_info.cpp index 6574df2a1413cdfbc293dbe630b0b88d12bd043e..7fd9ba26bea724944c9c2e0d036775e4ce8c13c3 100644 --- a/services/src/client_info.cpp +++ b/services/src/client_info.cpp @@ -866,6 +866,7 @@ void ClientInfo::SendMsgToClient(SensorPlugData info) bool ClientInfo::IsClientSubscribe() { + std::lock_guard clientLock(clientMutex_); return !clientMap_.empty(); } } // namespace Sensors