diff --git a/testApp/remote/testServer.cpp b/testApp/remote/testServer.cpp index 506aefc..37e4e45 100644 --- a/testApp/remote/testServer.cpp +++ b/testApp/remote/testServer.cpp @@ -1700,8 +1700,11 @@ public: virtual void structureChanged() { if (m_active.get()) - { - m_count = 0; + { + { + Lock xx(m_lock); + m_count = 0; + } Monitor::shared_pointer thisPtr = shared_from_this(); m_monitorRequester->monitorEvent(thisPtr); }