one more race condition when server server exits
This commit is contained in:
@@ -146,10 +146,12 @@ Status MonitorLocal::stop()
|
|||||||
if(pvRecord->getTraceLevel()>0){
|
if(pvRecord->getTraceLevel()>0){
|
||||||
cout << "MonitorLocal::stop() " << endl;
|
cout << "MonitorLocal::stop() " << endl;
|
||||||
}
|
}
|
||||||
Lock xx(mutex);
|
{
|
||||||
if(state==destroyed) return wasDestroyedStatus;
|
Lock xx(mutex);
|
||||||
if(state==idle) return notStartedStatus;
|
if(state==destroyed) return wasDestroyedStatus;
|
||||||
state = idle;
|
if(state==idle) return notStartedStatus;
|
||||||
|
state = idle;
|
||||||
|
}
|
||||||
pvCopyMonitor->stopMonitoring();
|
pvCopyMonitor->stopMonitoring();
|
||||||
return Status::Ok;
|
return Status::Ok;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user