testServer: monitor race-condition fixed

This commit is contained in:
Matej Sekoranja
2013-12-04 09:05:55 +01:00
parent b691c43c58
commit 1a8f89b147

View File

@@ -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);
}